From 5d9c7c4c6abe40df26ba4676aa2c8b56e73cc5df Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Mon, 21 Aug 2017 19:35:19 +0200 Subject: [PATCH] Fix upload requirements Signed-off-by: Mario Danic --- .../com/owncloud/android/datamodel/UploadsStorageManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java b/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java index 4ddc209145..9c9ebb6a37 100644 --- a/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java +++ b/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java @@ -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; }