diff options
author | Michael Kolb <kolby@google.com> | 2011-12-15 15:28:49 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-12-15 15:46:58 -0800 |
commit | 1c3a6d2630b372ad2ecbe11f5cf9fcf033a0e365 (patch) | |
tree | 203fee332227eca43d11b20851af05068f1ac146 /src/com/android/browser/XLargeUi.java | |
parent | 08952b047801ed0f00f7433ad238d539b2c22c13 (diff) | |
download | packages_apps_Browser-1c3a6d2630b372ad2ecbe11f5cf9fcf033a0e365.zip packages_apps_Browser-1c3a6d2630b372ad2ecbe11f5cf9fcf033a0e365.tar.gz packages_apps_Browser-1c3a6d2630b372ad2ecbe11f5cf9fcf033a0e365.tar.bz2 |
fix tablet quickcontrols to not show titlebar during load
handle progress updates in tablet navbar
Change-Id: I2398358537e6a244ae1873895bf4b5bb9e3ce8eb
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r-- | src/com/android/browser/XLargeUi.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index c828df4..17153b6 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -162,9 +162,15 @@ public class XLargeUi extends BaseUi { @Override public void onProgressChanged(Tab tab) { int progress = tab.getLoadProgress(); - mTabBar.onProgress(tab, progress); if (tab.inForeground()) { mTitleBar.setProgress(progress); + if (mUseQuickControls) { + if (progress == 100) { + mTitleBar.setShowProgressOnly(false); + } else if (!mTitleBar.isEditingUrl()) { + mTitleBar.setShowProgressOnly(true); + } + } } } |