mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 05:05:31 +03:00
remove variable assignments
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
3cf66f1c94
commit
8434a4887c
1 changed files with 6 additions and 11 deletions
|
@ -1019,27 +1019,22 @@ public class FileDisplayActivity extends FileActivity
|
|||
@SuppressFBWarnings("ITC_INHERITANCE_TYPE_CHECKING")
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
final boolean isDrawerOpen = isDrawerOpen();
|
||||
if (isDrawerOpen) {
|
||||
if (isDrawerOpen()) {
|
||||
super.onBackPressed();
|
||||
return;
|
||||
}
|
||||
|
||||
final boolean isSearchOpen = isSearchOpen();
|
||||
if (isSearchOpen) {
|
||||
if (isSearchOpen()) {
|
||||
resetSearchAction();
|
||||
return;
|
||||
}
|
||||
|
||||
final Fragment leftFragment = getLeftFragment();
|
||||
if (leftFragment instanceof OCFileListFragment listOfFiles) {
|
||||
OCFile currentDir = getCurrentDir();
|
||||
if (isRoot(currentDir)) {
|
||||
if (getLeftFragment() instanceof OCFileListFragment listOfFiles) {
|
||||
if (isRoot(getCurrentDir())) {
|
||||
finish();
|
||||
return;
|
||||
} else {
|
||||
browseUp(listOfFiles);
|
||||
}
|
||||
|
||||
browseUp(listOfFiles);
|
||||
} else {
|
||||
popBack();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue