summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@android.com>2012-09-04 16:01:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-04 16:01:49 -0700
commita05bb14549f6d7d3042739466a015c53ad910bd0 (patch)
tree42a8b01aeda75eb529c33288781308b36889d04d
parent966beb17e375f3fc5466ec5a1015eda9a4fa5639 (diff)
parent922afab3f6044ff38c78d1d991c74ca003f90302 (diff)
downloadpackages_apps_browser-a05bb14549f6d7d3042739466a015c53ad910bd0.zip
packages_apps_browser-a05bb14549f6d7d3042739466a015c53ad910bd0.tar.gz
packages_apps_browser-a05bb14549f6d7d3042739466a015c53ad910bd0.tar.bz2
am 922afab3: Merge "No search pane while tapping search button after backing to "windows" view from "saved page" view."
* commit '922afab3f6044ff38c78d1d991c74ca003f90302': No search pane while tapping search button after backing to "windows" view from "saved page" view.
-rw-r--r--src/com/android/browser/PhoneUi.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java
index e3c22bd..89eae70 100644
--- a/src/com/android/browser/PhoneUi.java
+++ b/src/com/android/browser/PhoneUi.java
@@ -54,6 +54,7 @@ public class PhoneUi extends BaseUi {
private int mActionBarHeight;
boolean mAnimating;
+ boolean mShowNav = false;
/**
* @param browser
@@ -80,6 +81,8 @@ public class PhoneUi extends BaseUi {
if (mUseQuickControls) {
mTitleBar.setShowProgressOnly(false);
}
+ //Do nothing while at Nav show screen.
+ if (mShowNav) return;
super.editUrl(clearInput, forceIME);
}
@@ -131,6 +134,12 @@ public class PhoneUi extends BaseUi {
mTitleBar.cancelTitleBarAnimation(true);
mTitleBar.setSkipTitleBarAnimations(true);
super.setActiveTab(tab);
+
+ //if at Nav screen show, detach tab like what showNavScreen() do.
+ if (mShowNav) {
+ detachTab(mActiveTab);
+ }
+
BrowserWebView view = (BrowserWebView) tab.getWebView();
// TabControl.setCurrentTab has been called before this,
// so the tab is guaranteed to have a webview
@@ -254,6 +263,7 @@ public class PhoneUi extends BaseUi {
}
void showNavScreen() {
+ mShowNav = true;
mUiController.setBlockEvents(true);
if (mNavScreen == null) {
mNavScreen = new NavScreen(mActivity, mUiController, this);
@@ -334,6 +344,7 @@ public class PhoneUi extends BaseUi {
}
void hideNavScreen(int position, boolean animate) {
+ mShowNav = false;
if (!showingNavScreen()) return;
final Tab tab = mUiController.getTabControl().getTab(position);
if ((tab == null) || !animate) {