Disable immersive mode on keyboard popup
Keyboard was hiding the text box in case the browser
was in immersive mode. This change will prevent that
from happening.
Change-Id: I9f21fd1043da43071cf752657196c5bc432641f1
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index c24cc48..2d7c0b3 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -108,6 +108,7 @@
protected TitleBar mTitleBar;
private NavigationBarBase mNavigationBar;
private boolean mBlockFocusAnimations;
+ private boolean mFullscreenModeLocked;
private EdgeSwipeController mEdgeSwipeController;
private EdgeSwipeSettings mEdgeSwipeSettings;
@@ -138,6 +139,7 @@
// install system ui visibility listeners
mDecorView = mActivity.getWindow().getDecorView();
mDecorView.setOnSystemUiVisibilityChangeListener(mSystemUiVisibilityChangeListener);
+ mFullscreenModeLocked = false;
}
private View.OnSystemUiVisibilityChangeListener mSystemUiVisibilityChangeListener =
@@ -844,7 +846,16 @@
}
}
+ public void forceDisableFullscreenMode(boolean disabled) {
+ mFullscreenModeLocked = false;
+ setFullscreen(!disabled);
+ mFullscreenModeLocked = disabled;
+ }
+
public void setFullscreen(boolean enabled) {
+ if (mFullscreenModeLocked)
+ return;
+
Window win = mActivity.getWindow();
WindowManager.LayoutParams winParams = win.getAttributes();
final int bits = WindowManager.LayoutParams.FLAG_FULLSCREEN;