mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Fix hidden flag
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
8ae13ea4a4
commit
4cf339e57c
3 changed files with 2 additions and 6 deletions
|
@ -920,7 +920,6 @@ public class FileDataStorageManager {
|
||||||
ocFile.setDownloading(nullToZero(fileEntity.isDownloading()) == 1);
|
ocFile.setDownloading(nullToZero(fileEntity.isDownloading()) == 1);
|
||||||
ocFile.setEtagInConflict(fileEntity.getEtagInConflict());
|
ocFile.setEtagInConflict(fileEntity.getEtagInConflict());
|
||||||
ocFile.setFavorite(nullToZero(fileEntity.getFavorite()) == 1);
|
ocFile.setFavorite(nullToZero(fileEntity.getFavorite()) == 1);
|
||||||
ocFile.setHidden(nullToZero(fileEntity.getHidden()) == 1);
|
|
||||||
ocFile.setEncrypted(nullToZero(fileEntity.isEncrypted()) == 1);
|
ocFile.setEncrypted(nullToZero(fileEntity.isEncrypted()) == 1);
|
||||||
// if (ocFile.isEncrypted()) {
|
// if (ocFile.isEncrypted()) {
|
||||||
// ocFile.setFileName(cursor.getString(cursor.getColumnIndexOrThrow(ProviderTableMeta.FILE_NAME)));
|
// ocFile.setFileName(cursor.getString(cursor.getColumnIndexOrThrow(ProviderTableMeta.FILE_NAME)));
|
||||||
|
@ -946,6 +945,7 @@ public class FileDataStorageManager {
|
||||||
ocFile.setLockTimeout(nullToZero(fileEntity.getLockTimeout()));
|
ocFile.setLockTimeout(nullToZero(fileEntity.getLockTimeout()));
|
||||||
ocFile.setLockToken(fileEntity.getLockToken());
|
ocFile.setLockToken(fileEntity.getLockToken());
|
||||||
ocFile.setLivePhoto(fileEntity.getMetadataLivePhoto());
|
ocFile.setLivePhoto(fileEntity.getMetadataLivePhoto());
|
||||||
|
ocFile.setHidden(nullToZero(fileEntity.getHidden()) == 1);
|
||||||
|
|
||||||
String sharees = fileEntity.getSharees();
|
String sharees = fileEntity.getSharees();
|
||||||
// Surprisingly JSON deserialization causes significant overhead.
|
// Surprisingly JSON deserialization causes significant overhead.
|
||||||
|
|
|
@ -692,10 +692,6 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
||||||
}
|
}
|
||||||
if (mStorageManager != null) {
|
if (mStorageManager != null) {
|
||||||
mFiles = mStorageManager.getFolderContent(directory, onlyOnDevice);
|
mFiles = mStorageManager.getFolderContent(directory, onlyOnDevice);
|
||||||
mFiles.forEach(file -> {
|
|
||||||
Log_OC.d("","IS LIVE PHOTO FILE:" + file.getLivePhoto());
|
|
||||||
Log_OC.d("","IS HIDDEN FILE:" + file.getHidden());
|
|
||||||
});
|
|
||||||
if (!preferences.isShowHiddenFilesEnabled()) {
|
if (!preferences.isShowHiddenFilesEnabled()) {
|
||||||
mFiles = filterHiddenFiles(mFiles);
|
mFiles = filterHiddenFiles(mFiles);
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,7 +238,6 @@ public final class FileStorageUtils {
|
||||||
file.setRemoteId(remote.getRemoteId());
|
file.setRemoteId(remote.getRemoteId());
|
||||||
file.setLocalId(remote.getLocalId());
|
file.setLocalId(remote.getLocalId());
|
||||||
file.setFavorite(remote.isFavorite());
|
file.setFavorite(remote.isFavorite());
|
||||||
file.setHidden(remote.getHidden());
|
|
||||||
if (file.isFolder()) {
|
if (file.isFolder()) {
|
||||||
file.setEncrypted(remote.isEncrypted());
|
file.setEncrypted(remote.isEncrypted());
|
||||||
}
|
}
|
||||||
|
@ -262,6 +261,7 @@ public final class FileStorageUtils {
|
||||||
file.setImageDimension(remote.getImageDimension());
|
file.setImageDimension(remote.getImageDimension());
|
||||||
file.setGeoLocation(remote.getGeoLocation());
|
file.setGeoLocation(remote.getGeoLocation());
|
||||||
file.setLivePhoto(remote.getLivePhoto());
|
file.setLivePhoto(remote.getLivePhoto());
|
||||||
|
file.setHidden(remote.getHidden());
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue