summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BaseUi.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-04-25 14:14:26 -0700
committerMichael Kolb <kolby@google.com>2012-04-25 14:14:26 -0700
commite8a823329e004c4261ee5f810e1ca3ebd90914dd (patch)
treeaff80fe421ec67f92ee8c2feb940e037cb528c71 /src/com/android/browser/BaseUi.java
parent799a1ac48f47606404608d06f5aa17d0d3118a1b (diff)
downloadpackages_apps_Browser-e8a823329e004c4261ee5f810e1ca3ebd90914dd.zip
packages_apps_Browser-e8a823329e004c4261ee5f810e1ca3ebd90914dd.tar.gz
packages_apps_Browser-e8a823329e004c4261ee5f810e1ca3ebd90914dd.tar.bz2
Fix QuickControls after title bar tweaks
Bug: 6398599 Minor cleanup in title bar code. Change-Id: I55357acb86050e549d80d44d99f4a89ed1e49e9d
Diffstat (limited to 'src/com/android/browser/BaseUi.java')
-rw-r--r--src/com/android/browser/BaseUi.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 7b7e25f..01c7da6 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -224,6 +224,14 @@ public abstract class BaseUi implements UI {
}
@Override
+ public void onProgressChanged(Tab tab) {
+ int progress = tab.getLoadProgress();
+ if (tab.inForeground()) {
+ mTitleBar.setProgress(progress);
+ }
+ }
+
+ @Override
public void bookmarkedStatusHasChanged(Tab tab) {
if (tab.inForeground()) {
boolean isBookmark = tab.isBookmarkedSite();
@@ -270,6 +278,7 @@ public abstract class BaseUi implements UI {
if (mUseQuickControls) {
mPieControl.forceToTop(mContentView);
web.setTitleBar(null);
+ mTitleBar.hide();
} else {
web.setTitleBar(mTitleBar);
mTitleBar.onScrollChanged();