Skip to content
Closed

Quota #12061

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import androidx.work.WorkerFactory
import androidx.work.WorkerParameters
import com.nextcloud.client.account.UserAccountManager
import com.nextcloud.client.core.Clock
import com.nextcloud.client.device.DeviceInfo
import com.nextcloud.client.device.PowerManagementService
import com.nextcloud.client.documentscan.GeneratePDFUseCase
import com.nextcloud.client.documentscan.GeneratePdfFromImagesWork
Expand Down Expand Up @@ -49,7 +48,6 @@ class BackgroundJobFactory @Inject constructor(
private val clock: Clock,
private val powerManagementService: PowerManagementService,
private val backgroundJobManager: Provider<BackgroundJobManager>,
private val deviceInfo: DeviceInfo,
private val accountManager: UserAccountManager,
private val resources: Resources,
private val arbitraryDataProvider: ArbitraryDataProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ private int updateUploadInternal(Cursor c, UploadStatus status, UploadResult res
+ upload.toFormattedString() + ')');

upload.setUploadStatus(status);
upload.setLastResult(result);
if (result != null) {
upload.setLastResult(result);
}
upload.setRemotePath(remotePath);
if (localPath != null) {
upload.setLocalPath(localPath);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/owncloud/android/db/OCUpload.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void setDataFixed(FileUploadHelper uploadHelper) {
*/
public void setUploadStatus(UploadStatus uploadStatus) {
this.uploadStatus = uploadStatus;
setLastResult(UploadResult.UNKNOWN);
// setLastResult(UploadResult.UNKNOWN);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

import androidx.annotation.NonNull;

import static com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode.QUOTA_EXCEEDED;

/**
* This Adapter populates a ListView with following types of uploads: pending, active, completed. Filtering possible.
*/
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,4 +1348,5 @@
<string name="sync_duplication">Sync duplication</string>
<string name="server_not_reachable">Could not load content</string>
<string name="server_not_reachable_content">The device is likely not connected to the internet</string>
<string name="quota_exceeded">Quota exceeded. Free up some space on server.</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class BackgroundJobFactoryTest {
clock,
powerManagementService,
{ backgroundJobManager },
deviceInfo,
accountManager,
resources,
dataProvider,
Expand Down
Loading