mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
#1464 reorder back button actions
This commit is contained in:
parent
afa70ee42d
commit
e41d718ecd
@ -589,14 +589,14 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
if (tabSwitcherRoot.getVisibility() == View.VISIBLE) {
|
||||
selectTab(currentWebViewIndex);
|
||||
hideTabSwitcher();
|
||||
} else if (getCurrentWebView().canGoBack()) {
|
||||
getCurrentWebView().goBack();
|
||||
} else if (isFullscreenOpened) {
|
||||
closeFullScreen();
|
||||
} else if (compatCallback.mIsActive) {
|
||||
compatCallback.finish();
|
||||
} else if (drawerLayout.isDrawerOpen(GravityCompat.END)) {
|
||||
drawerLayout.closeDrawers();
|
||||
} else if (getCurrentWebView().canGoBack()) {
|
||||
getCurrentWebView().goBack();
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user