Skip to content

Commit

Permalink
Merge pull request TeamAmaze#3824 from HalfAPum/bugfix/3162
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalNehra authored May 28, 2023
2 parents 45996eb + 4fce614 commit 7240246
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,18 +796,19 @@ public void onDrawerClosed() {
hFile.generateMode(mainActivity);
if (hFile.isSimpleFile()) {
FileUtils.openFile(new File(pendingPath), mainActivity, mainActivity.getPrefs());
pendingPath = null;
resetPendingPath();
return;
}

MainFragment mainFragment = mainActivity.getCurrentMainFragment();
if (mainFragment != null) {
mainFragment.loadlist(pendingPath, false, OpenMode.UNKNOWN, false);
resetPendingPath();
} else {
mainActivity.goToMain(pendingPath);
resetPendingPath();
return;
}
pendingPath = null;
}
mainActivity.supportInvalidateOptionsMenu();
}
Expand Down

0 comments on commit 7240246

Please sign in to comment.