From e8a823329e004c4261ee5f810e1ca3ebd90914dd Mon Sep 17 00:00:00 2001 From: Michael Kolb Date: Wed, 25 Apr 2012 14:14:26 -0700 Subject: Fix QuickControls after title bar tweaks Bug: 6398599 Minor cleanup in title bar code. Change-Id: I55357acb86050e549d80d44d99f4a89ed1e49e9d --- src/com/android/browser/BaseUi.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/com/android/browser/BaseUi.java') 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(); -- cgit v1.1