diff options
author | Michael Kolb <kolby@google.com> | 2011-03-20 10:17:40 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-03-23 12:54:12 -0700 |
commit | 11d1978d8d16004598347abc93918b54a5ef760b (patch) | |
tree | b3941e98c31d7c9346d594f7a3f5591745e25778 /src/com/android/browser/XLargeUi.java | |
parent | 71791a09579b21ef61f00c38056497cd99667440 (diff) | |
download | packages_apps_Browser-11d1978d8d16004598347abc93918b54a5ef760b.zip packages_apps_Browser-11d1978d8d16004598347abc93918b54a5ef760b.tar.gz packages_apps_Browser-11d1978d8d16004598347abc93918b54a5ef760b.tar.bz2 |
fix title bar
Merge code from TitleBarXLarge down into base
to support omnibox in both tablet and phone
browser
Change-Id: If54f3b162725411236f0b0676887bbcbdabadd25
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r-- | src/com/android/browser/XLargeUi.java | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index 92fdc97..c763bb0 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -23,7 +23,6 @@ import android.animation.Animator.AnimatorListener; import android.animation.ObjectAnimator; import android.app.ActionBar; import android.app.Activity; -import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.os.Bundle; import android.os.Handler; @@ -249,7 +248,7 @@ public class XLargeUi extends BaseUi implements ScrollListener { } mTabBar.onSetActiveTab(tab); if (tab.isInVoiceSearchMode()) { - showVoiceTitleBar(tab.getVoiceDisplayTitle()); + showVoiceTitleBar(tab.getVoiceDisplayTitle(), tab.getVoiceSearchResults()); } else { revertVoiceTitleBar(tab); } @@ -450,18 +449,6 @@ public class XLargeUi extends BaseUi implements ScrollListener { } @Override - protected void updateAutoLogin(Tab tab, boolean animate) { - mTitleBar.updateAutoLogin(tab, animate); - } - - protected void refreshWebView() { - Tab tab = getActiveTab(); - if ((tab != null) && (tab.getWebView() != null)) { - tab.getWebView().invalidate(); - } - } - - @Override public void setUrlTitle(Tab tab) { super.setUrlTitle(tab); mTabBar.onUrlAndTitle(tab, tab.getUrl(), tab.getTitle()); @@ -475,11 +462,7 @@ public class XLargeUi extends BaseUi implements ScrollListener { } @Override - public void showVoiceTitleBar(String title) { - List<String> vsresults = null; - if (getActiveTab() != null) { - vsresults = getActiveTab().getVoiceSearchResults(); - } + public void showVoiceTitleBar(String title, List<String> vsresults) { mTitleBar.setInVoiceMode(true, vsresults); mTitleBar.setDisplayTitle(title); } @@ -540,11 +523,6 @@ public class XLargeUi extends BaseUi implements ScrollListener { } @Override - public void registerDropdownChangeListener(DropdownChangeListener d) { - mTitleBar.registerDropdownChangeListener(d); - } - - @Override public boolean onPrepareOptionsMenu(Menu menu) { if (mUseQuickControls) { mPieControl.onMenuOpened(menu); |