Revert changes for OCFileListFragment

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-11-09 16:23:15 +01:00 committed by Alper Öztürk (Rebase PR Action)
parent f9619b8b1c
commit 470ce3d2fc

View file

@ -421,7 +421,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
setTitle(); setTitle();
FragmentActivity fragmentActivity; FragmentActivity fragmentActivity;
if ((fragmentActivity = getActivity()) != null && fragmentActivity instanceof FileDisplayActivity fileDisplayActivity) { if ((fragmentActivity = getActivity()) != null && fragmentActivity instanceof FileDisplayActivity) {
FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) fragmentActivity;
fileDisplayActivity.updateActionBarTitleAndHomeButton(fileDisplayActivity.getCurrentDir()); fileDisplayActivity.updateActionBarTitleAndHomeButton(fileDisplayActivity.getCurrentDir());
} }
listDirectory(MainApp.isOnlyOnDevice(), false); listDirectory(MainApp.isOnlyOnDevice(), false);
@ -560,7 +561,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
getActivity(), getActivity(),
((FileActivity) getActivity()).getUser().orElseThrow(RuntimeException::new), ((FileActivity) getActivity()).getUser().orElseThrow(RuntimeException::new),
FileDisplayActivity.REQUEST_CODE__SELECT_FILES_FROM_FILE_SYSTEM, FileDisplayActivity.REQUEST_CODE__SELECT_FILES_FROM_FILE_SYSTEM,
getCurrentFile().isEncrypted() getCurrentFile().isEncrypted()
); );
} }