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
parent 1ab8055cd4
commit 82fad97155
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -421,7 +421,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
setTitle();
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());
}
listDirectory(MainApp.isOnlyOnDevice(), false);
@ -560,7 +561,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
getActivity(),
((FileActivity) getActivity()).getUser().orElseThrow(RuntimeException::new),
FileDisplayActivity.REQUEST_CODE__SELECT_FILES_FROM_FILE_SYSTEM,
getCurrentFile().isEncrypted()
getCurrentFile().isEncrypted()
);
}