change check order

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-10-01 16:51:19 +02:00 committed by Alper Öztürk
parent 8434a4887c
commit b057344e46

View file

@ -1019,13 +1019,13 @@ public class FileDisplayActivity extends FileActivity
@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;
}