diff options
author | Vivek Sekhar <vsekhar@codeaurora.org> | 2014-07-21 19:13:33 -0700 |
---|---|---|
committer | Vivek Sekhar <vsekhar@codeaurora.org> | 2014-07-30 12:18:35 -0700 |
commit | 60eb980eb398c5459fbc0e72d141a58161e7d3be (patch) | |
tree | 91151ecec515d7e74eb59067e0d2ccf765215cfb /src/com/android/browser/TitleBar.java | |
parent | 4ddafb1795f2199b6e3e16ff2d706433db533cca (diff) | |
download | android_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.java | 4 |
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); |