diff options
author | Michael Kolb <kolby@google.com> | 2012-04-25 14:14:26 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2012-04-25 14:14:26 -0700 |
commit | e8a823329e004c4261ee5f810e1ca3ebd90914dd (patch) | |
tree | aff80fe421ec67f92ee8c2feb940e037cb528c71 /src/com/android/browser/TitleBar.java | |
parent | 799a1ac48f47606404608d06f5aa17d0d3118a1b (diff) | |
download | packages_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/TitleBar.java')
-rw-r--r-- | src/com/android/browser/TitleBar.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java index f7ca0d4..9ec972b 100644 --- a/src/com/android/browser/TitleBar.java +++ b/src/com/android/browser/TitleBar.java @@ -228,7 +228,7 @@ public class TitleBar extends RelativeLayout { // check if needs to be hidden if (!isEditingUrl() && !wantsToBeVisible()) { if (mUseQuickControls) { - setShowProgressOnly(false); + hide(); } else { mBaseUi.showTitleBarForDuration(); } @@ -241,10 +241,10 @@ public class TitleBar extends RelativeLayout { } mProgress.setProgress(newProgress * PageProgressView.MAX_PROGRESS / PROGRESS_MAX); + if (mUseQuickControls && !isEditingUrl()) { + setShowProgressOnly(true); + } if (!mShowing) { - if (mUseQuickControls && !isEditingUrl()) { - setShowProgressOnly(true); - } show(); } } |