|
@@ -193,6 +193,8 @@ public class FileDataStorageManager {
|
|
|
cv.put(ProviderTableMeta.FILE_PERMISSIONS, file.getPermissions());
|
|
|
cv.put(ProviderTableMeta.FILE_REMOTE_ID, file.getRemoteId());
|
|
|
cv.put(ProviderTableMeta.FILE_UPDATE_THUMBNAIL, file.needsUpdateThumbnail());
|
|
|
+ cv.put(ProviderTableMeta.FILE_IS_DOWNLOADING, file.isDownloading());
|
|
|
+ cv.put(ProviderTableMeta.FILE_IS_UPLOADING, file.isUploading());
|
|
|
|
|
|
boolean sameRemotePath = fileExists(file.getRemotePath());
|
|
|
if (sameRemotePath ||
|
|
@@ -302,6 +304,8 @@ public class FileDataStorageManager {
|
|
|
cv.put(ProviderTableMeta.FILE_PERMISSIONS, file.getPermissions());
|
|
|
cv.put(ProviderTableMeta.FILE_REMOTE_ID, file.getRemoteId());
|
|
|
cv.put(ProviderTableMeta.FILE_UPDATE_THUMBNAIL, file.needsUpdateThumbnail());
|
|
|
+ cv.put(ProviderTableMeta.FILE_IS_DOWNLOADING, file.isDownloading());
|
|
|
+ cv.put(ProviderTableMeta.FILE_IS_UPLOADING, file.isUploading());
|
|
|
|
|
|
boolean existsByPath = fileExists(file.getRemotePath());
|
|
|
if (existsByPath || fileExists(file.getFileId())) {
|
|
@@ -877,6 +881,10 @@ public class FileDataStorageManager {
|
|
|
file.setRemoteId(c.getString(c.getColumnIndex(ProviderTableMeta.FILE_REMOTE_ID)));
|
|
|
file.setNeedsUpdateThumbnail(c.getInt(
|
|
|
c.getColumnIndex(ProviderTableMeta.FILE_UPDATE_THUMBNAIL)) == 1 ? true : false);
|
|
|
+ file.setDownloading(c.getInt(
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_IS_DOWNLOADING)) == 1 ? true : false);
|
|
|
+ file.setUploading(c.getInt(
|
|
|
+ c.getColumnIndex(ProviderTableMeta.FILE_IS_UPLOADING)) == 1 ? true : false);
|
|
|
|
|
|
}
|
|
|
return file;
|
|
@@ -1259,6 +1267,14 @@ public class FileDataStorageManager {
|
|
|
ProviderTableMeta.FILE_UPDATE_THUMBNAIL,
|
|
|
file.needsUpdateThumbnail() ? 1 : 0
|
|
|
);
|
|
|
+ cv.put(
|
|
|
+ ProviderTableMeta.FILE_IS_DOWNLOADING,
|
|
|
+ file.isDownloading() ? 1 : 0
|
|
|
+ );
|
|
|
+ cv.put(
|
|
|
+ ProviderTableMeta.FILE_IS_UPLOADING,
|
|
|
+ file.isUploading() ? 1 : 0
|
|
|
+ );
|
|
|
|
|
|
boolean existsByPath = fileExists(file.getRemotePath());
|
|
|
if (existsByPath || fileExists(file.getFileId())) {
|