summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-07-01 17:02:55 -0700
committerJohn Reck <jreck@google.com>2011-07-01 17:02:55 -0700
commit6ac5bfda1a372219e469d965e94899d3b4895e0f (patch)
tree39e2c29ae46ce6517180bf33475bf8c3311c5b05 /src
parent2bc8042224be51966d748b870768ec1b376a1621 (diff)
downloadpackages_apps_Browser-6ac5bfda1a372219e469d965e94899d3b4895e0f.zip
packages_apps_Browser-6ac5bfda1a372219e469d965e94899d3b4895e0f.tar.gz
packages_apps_Browser-6ac5bfda1a372219e469d965e94899d3b4895e0f.tar.bz2
Temporarily show title bar on setActiveTab
Bug: 4988753 Change-Id: I59ea95c860bac6cbf33f5f4e3907a039e199430c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/BaseUi.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index e2ad329..0777efd 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -250,6 +250,10 @@ public abstract class BaseUi implements UI, OnTouchListener {
boolean incognito = mActiveTab.getWebView().isPrivateBrowsingEnabled();
getTitleBar().setIncognitoMode(incognito);
updateAutoLogin(tab, false);
+ if (web != null && web.getVisibleTitleHeight()
+ != getTitleBar().getEmbeddedHeight()) {
+ showTitleBarForDuration();
+ }
}
Tab getActiveTab() {
@@ -819,6 +823,13 @@ public abstract class BaseUi implements UI, OnTouchListener {
}
}
+ private void showTitleBarForDuration() {
+ mHandler.removeMessages(MSG_HIDE_TITLEBAR);
+ showTitleBar();
+ Message msg = Message.obtain(mHandler, MSG_HIDE_TITLEBAR);
+ mHandler.sendMessageDelayed(msg, HIDE_TITLEBAR_DELAY);
+ }
+
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {