Merge pull request #1394 from nextcloud/fix-charging-req

Fix upload requirements
This commit is contained in:
Andy Scherzinger 2017-08-21 19:58:00 +02:00 committed by GitHub
commit 8c5f5ced8b

View file

@ -363,6 +363,9 @@ public class UploadsStorageManager extends Observable {
upload.setLastResult(UploadResult.fromValue( upload.setLastResult(UploadResult.fromValue(
c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_LAST_RESULT)))); c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_LAST_RESULT))));
upload.setCreatedBy(c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_CREATED_BY))); 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; return upload;
} }