Skip to content

Commit

Permalink
change check order
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <alper_ozturk@proton.me>
  • Loading branch information
alperozturk96 committed Oct 1, 2024
1 parent 0980795 commit 6d78caa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -997,13 +997,13 @@ private Boolean isRootDirectory() {
@SuppressFBWarnings("ITC_INHERITANCE_TYPE_CHECKING")
@Override
public void onBackPressed() {
if (isDrawerOpen()) {
super.onBackPressed();
if (isSearchOpen()) {
resetSearchAction();
return;
}

if (isSearchOpen()) {
resetSearchAction();
if (isDrawerOpen()) {
super.onBackPressed();
return;
}

Expand Down

0 comments on commit 6d78caa

Please sign in to comment.