Exit fullscreen when Home or Power button is pressed
If the browser is in fullscreen mode, exit fullscreen when the Home or
Power button is pressed. The next time the Browser is launched, it
should show the page in non-fullscreen mode.
Change-Id: I3afd3ccb62f827b5ad2e79ff6159e39e687283fa
Issues-fixed: SWE-2892
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 8eab5b1..cfd3f8e 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -174,6 +174,9 @@
if (isCustomViewShowing()) {
onHideCustomView();
}
+ if (mTabControl.getCurrentTab() != null) {
+ mTabControl.getCurrentTab().exitFullscreen();
+ }
cancelStopToast();
mActivityPaused = true;
}