#1464 reorder back button actions

This commit is contained in:
Sean Mac Gillicuddy 2019-09-13 12:01:01 +01:00
parent afa70ee42d
commit e41d718ecd

View File

@ -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();
}