Titlebar cleanup
- Removed timer based Titlebar animation
- Always show Titlebar when keyboard is up
- Block webpage scroll when Titlebar is focused
- Added command line switch to disable top controls
- Fix rendering issue seen when user exits fullscreen video
Change-Id: I9d0afe7be907522b3678746c04049c2904118a4b
diff --git a/src/com/android/browser/SnapshotBar.java b/src/com/android/browser/SnapshotBar.java
index 29f2a90..344e732 100644
--- a/src/com/android/browser/SnapshotBar.java
+++ b/src/com/android/browser/SnapshotBar.java
@@ -44,7 +44,7 @@
public class SnapshotBar extends LinearLayout implements OnClickListener {
private static final int MSG_SHOW_TITLE = 1;
- private static final long DURATION_SHOW_DATE = BaseUi.HIDE_TITLEBAR_DELAY;
+ private static final long DURATION_SHOW_DATE = 1500;
private ImageView mFavicon;
private ImageView mSnapshoticon;
@@ -100,7 +100,6 @@
if (msg.what == MSG_SHOW_TITLE) {
mIsAnimating = false;
showTitle();
- mTitleBar.getUi().showTitleBarForDuration();
}
}
};
@@ -209,7 +208,7 @@
} else if (mToggleContainer == v && !mIsAnimating) {
mIsAnimating = true;
showDate();
- mTitleBar.getUi().showTitleBar();
+ mTitleBar.showTopControls(false);
Message m = mHandler.obtainMessage(MSG_SHOW_TITLE);
mHandler.sendMessageDelayed(m, DURATION_SHOW_DATE);
}