diff options
Diffstat (limited to 'src/com/android/browser/PhoneUi.java')
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index 66656cf..e35e624 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -19,6 +19,7 @@ package com.android.browser; import android.app.Activity; import android.content.Context; import android.graphics.PixelFormat; +import android.util.Log; import android.view.ActionMode; import android.view.Gravity; import android.view.Menu; @@ -118,6 +119,27 @@ public class PhoneUi extends BaseUi { } @Override + public void setActiveTab(Tab tab) { + super.setActiveTab(tab); + WebView view = tab.getWebView(); + // TabControl.setCurrentTab has been called before this, + // so the tab is guaranteed to have a webview + if (view == null) { + Log.e(LOGTAG, "active tab with no webview detected"); + return; + } + view.setEmbeddedTitleBar(getEmbeddedTitleBar()); + if (tab.isInVoiceSearchMode()) { + showVoiceTitleBar(tab.getVoiceDisplayTitle()); + } else { + revertVoiceTitleBar(tab); + } + resetTitleIconAndProgress(tab); + updateLockIconToLatest(tab); + tab.getTopWindow().requestFocus(); + } + + @Override protected void attachFakeTitleBar(WebView mainView) { WindowManager manager = (WindowManager) mActivity.getSystemService(Context.WINDOW_SERVICE); |