mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Hide Tab Switcher onBackPressed
This commit is contained in:
parent
06894bc63a
commit
16ecfbb676
@ -1139,7 +1139,10 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
switch (keyCode) {
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
if (getCurrentWebView().canGoBack()) {
|
||||
if (tabSwitcherRoot.getVisibility() == View.VISIBLE) {
|
||||
selectTab(currentWebViewIndex);
|
||||
hideTabSwitcher();
|
||||
} else if (getCurrentWebView().canGoBack()) {
|
||||
getCurrentWebView().goBack();
|
||||
} else if (isFullscreenOpened) {
|
||||
closeFullScreen();
|
||||
|
Loading…
x
Reference in New Issue
Block a user