diff options
author | yijunx.zhu <yijunx.zhu@intel.com> | 2012-07-27 13:37:00 -0400 |
---|---|---|
committer | Xiaokang Qin <xiaokang.qin@intel.com> | 2012-08-21 16:56:57 +0800 |
commit | 2230a3146c4d99ab5927c8f740c5bd09927e9da6 (patch) | |
tree | d2d48db96a38f455c2bd23a869c2a0724a66af5f /src/com/android/browser/PhoneUi.java | |
parent | d9001a7dc5854d5dfc24a5ead19ad8c05acf171e (diff) | |
download | packages_apps_Browser-2230a3146c4d99ab5927c8f740c5bd09927e9da6.zip packages_apps_Browser-2230a3146c4d99ab5927c8f740c5bd09927e9da6.tar.gz packages_apps_Browser-2230a3146c4d99ab5927c8f740c5bd09927e9da6.tar.bz2 |
No search pane while tapping search button after backing to "windows" view from "saved page" view.
When NavScreen is showing, the active tab should be detached normally,
but tab is reattached after backing to NavScreen from other activity.
Do the detach again.
Change-Id: I1b30791285a0ff08c69924d74a0f1660212995f2
Author: Weiwei Ji <weiweix.ji@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28528
Diffstat (limited to 'src/com/android/browser/PhoneUi.java')
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 11 |
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) { |