Add TODO comments

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-09-23 12:14:02 +02:00
parent 08bf32a39f
commit f0cefec252
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -780,6 +780,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
this.user = account;
}
if (mStorageManager != null) {
// TODO refactor filtering mechanism for mFiles
mFiles = mStorageManager.getFolderContent(directory, onlyOnDevice);
if (!preferences.isShowHiddenFilesEnabled()) {
mFiles = filterHiddenFiles(mFiles);
@ -790,6 +791,8 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
if (OCFile.ROOT_PATH.equals(directory.getRemotePath()) && MainApp.isOnlyPersonFiles()) {
mFiles = limitToPersonalFiles(mFiles);
}
// TODO refactor add DrawerState instead of using static menuItemId
if (DrawerActivity.menuItemId == R.id.nav_shared && currentDirectory.isRootDirectory()) {
mFiles = filterSharedFiles(mFiles);
}