|
@@ -337,19 +337,19 @@ public class UploadsStorageManager extends Observable {
|
|
|
file.setLastSyncDateForData(c.getLong(c.
|
|
|
getColumnIndex(ProviderTableMeta.FILE_LAST_SYNC_DATE_FOR_DATA)));
|
|
|
file.setFavorite(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.FILE_KEEP_IN_SYNC)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_KEEP_IN_SYNC)) == 1 );
|
|
|
file.setEtag(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_ETAG)));
|
|
|
file.setShareViaLink(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.FILE_SHARED_VIA_LINK)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_SHARED_VIA_LINK)) == 1 );
|
|
|
file.setShareWithSharee(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.FILE_SHARED_WITH_SHAREE)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_SHARED_WITH_SHAREE)) == 1 );
|
|
|
file.setPublicLink(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_PUBLIC_LINK)));
|
|
|
file.setPermissions(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_PERMISSIONS)));
|
|
|
file.setRemoteId(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_REMOTE_ID)));
|
|
|
file.setNeedsUpdateThumbnail(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.FILE_UPDATE_THUMBNAIL)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_UPDATE_THUMBNAIL)) == 1 );
|
|
|
file.setDownloading(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.FILE_IS_DOWNLOADING)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_IS_DOWNLOADING)) == 1 );
|
|
|
file.setEtagInConflict(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_ETAG_IN_CONFLICT)));
|
|
|
|
|
|
}
|
|
@@ -370,13 +370,13 @@ public class UploadsStorageManager extends Observable {
|
|
|
upload.setLocalAction(FileUploadService.LocalBehaviour.fromValue(
|
|
|
c.getInt(c.getColumnIndex((ProviderTableMeta.UPLOADS_LOCAL_BEHAVIOUR)))));
|
|
|
upload.setForceOverwrite(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.UPLOADS_FORCE_OVERWRITE)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.UPLOADS_FORCE_OVERWRITE)) == 1 );
|
|
|
upload.setCreateRemoteFolder(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_CREATE_REMOTE_FOLDER)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_CREATE_REMOTE_FOLDER)) == 1 );
|
|
|
upload.setWhileChargingOnly(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WHILE_CHARGING_ONLY)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WHILE_CHARGING_ONLY)) == 1 );
|
|
|
upload.setUseWifiOnly(c.getInt(
|
|
|
- c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WIFI_ONLY)) == 1 ? true : false);
|
|
|
+ c.getColumnIndex(ProviderTableMeta.UPLOADS_IS_WIFI_ONLY)) == 1 );
|
|
|
upload.setUploadTimestamp(c.getLong(c.getColumnIndex(ProviderTableMeta.UPLOADS_UPLOAD_TIMESTAMP)));
|
|
|
upload.setLastResult(UploadResult.fromValue(
|
|
|
c.getInt(c.getColumnIndex(ProviderTableMeta.UPLOADS_LAST_RESULT))));
|