mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Revert changes for OCFileListFragment
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
f9619b8b1c
commit
470ce3d2fc
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue