mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #1394 from nextcloud/fix-charging-req
Fix upload requirements
This commit is contained in:
commit
8c5f5ced8b
1 changed files with 3 additions and 0 deletions
|
@ -363,6 +363,9 @@ public class UploadsStorageManager extends Observable {
|
|||
upload.setLastResult(UploadResult.fromValue(
|
||||
c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_LAST_RESULT))));
|
||||
upload.setCreatedBy(c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_CREATED_BY)));
|
||||
upload.setUseWifiOnly(c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WIFI_ONLY)) == 1);
|
||||
upload.setWhileChargingOnly(c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WHILE_CHARGING_ONLY))
|
||||
== 1);
|
||||
}
|
||||
return upload;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue