diff --git a/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index 87a9691138..64bb24c918 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java @@ -920,7 +920,6 @@ public class FileDataStorageManager { ocFile.setDownloading(nullToZero(fileEntity.isDownloading()) == 1); ocFile.setEtagInConflict(fileEntity.getEtagInConflict()); ocFile.setFavorite(nullToZero(fileEntity.getFavorite()) == 1); - ocFile.setHidden(nullToZero(fileEntity.getHidden()) == 1); ocFile.setEncrypted(nullToZero(fileEntity.isEncrypted()) == 1); // if (ocFile.isEncrypted()) { // ocFile.setFileName(cursor.getString(cursor.getColumnIndexOrThrow(ProviderTableMeta.FILE_NAME))); @@ -946,6 +945,7 @@ public class FileDataStorageManager { ocFile.setLockTimeout(nullToZero(fileEntity.getLockTimeout())); ocFile.setLockToken(fileEntity.getLockToken()); ocFile.setLivePhoto(fileEntity.getMetadataLivePhoto()); + ocFile.setHidden(nullToZero(fileEntity.getHidden()) == 1); String sharees = fileEntity.getSharees(); // Surprisingly JSON deserialization causes significant overhead. diff --git a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java index d99644812b..5a7066eb21 100644 --- a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java +++ b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java @@ -692,10 +692,6 @@ public class OCFileListAdapter extends RecyclerView.Adapter { - Log_OC.d("","IS LIVE PHOTO FILE:" + file.getLivePhoto()); - Log_OC.d("","IS HIDDEN FILE:" + file.getHidden()); - }); if (!preferences.isShowHiddenFilesEnabled()) { mFiles = filterHiddenFiles(mFiles); } diff --git a/app/src/main/java/com/owncloud/android/utils/FileStorageUtils.java b/app/src/main/java/com/owncloud/android/utils/FileStorageUtils.java index 06e0af648c..c7f4e3d5e1 100644 --- a/app/src/main/java/com/owncloud/android/utils/FileStorageUtils.java +++ b/app/src/main/java/com/owncloud/android/utils/FileStorageUtils.java @@ -238,7 +238,6 @@ public final class FileStorageUtils { file.setRemoteId(remote.getRemoteId()); file.setLocalId(remote.getLocalId()); file.setFavorite(remote.isFavorite()); - file.setHidden(remote.getHidden()); if (file.isFolder()) { file.setEncrypted(remote.isEncrypted()); } @@ -262,6 +261,7 @@ public final class FileStorageUtils { file.setImageDimension(remote.getImageDimension()); file.setGeoLocation(remote.getGeoLocation()); file.setLivePhoto(remote.getLivePhoto()); + file.setHidden(remote.getHidden()); return file; }