summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TitleBar.java
diff options
context:
space:
mode:
authorVivek Sekhar <vsekhar@codeaurora.org>2014-07-21 19:13:33 -0700
committerVivek Sekhar <vsekhar@codeaurora.org>2014-07-30 12:18:35 -0700
commit60eb980eb398c5459fbc0e72d141a58161e7d3be (patch)
tree91151ecec515d7e74eb59067e0d2ccf765215cfb /src/com/android/browser/TitleBar.java
parent4ddafb1795f2199b6e3e16ff2d706433db533cca (diff)
downloadandroid_packages_apps_Gello-60eb980eb398c5459fbc0e72d141a58161e7d3be.tar.gz
android_packages_apps_Gello-60eb980eb398c5459fbc0e72d141a58161e7d3be.tar.bz2
android_packages_apps_Gello-60eb980eb398c5459fbc0e72d141a58161e7d3be.zip
Fix issues in Autohide TitleBar
- Fixes issue when longpress of TitleBar shows copy/paste menu on top of titleBar. - Fixes issue in landscape mode where the setTranslationY value is reused from portrait mode. Change-Id: I521b4dd7a5385c621c941487f77894a3dcef42d3
Diffstat (limited to 'src/com/android/browser/TitleBar.java')
-rw-r--r--src/com/android/browser/TitleBar.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index 9963bc4d..78f2d0ef 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -102,9 +102,7 @@ public class TitleBar extends RelativeLayout {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
- boolean hide_title_on_scroll =
- getContext().getResources().getBoolean(R.bool.hide_title_on_scroll);
- if (mIsFixedTitleBar && !hide_title_on_scroll) {
+ if (mIsFixedTitleBar) {
int margin = getMeasuredHeight() - calculateEmbeddedHeight();
if (!isEditingUrl())
mBaseUi.setContentViewMarginTop(-margin);