diff options
author | Michael Kolb <kolby@google.com> | 2011-04-07 14:09:28 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-04-07 14:10:45 -0700 |
commit | eb0498226a10816b992c63af3a2da98c0efe8c35 (patch) | |
tree | e4e64858465c0b08a18d55100dc7c4a41735e51f /src/com/android/browser/BaseUi.java | |
parent | a7ff9f6a0e666a45bbbb64f72d0838024b6f05fe (diff) | |
download | packages_apps_Browser-eb0498226a10816b992c63af3a2da98c0efe8c35.zip packages_apps_Browser-eb0498226a10816b992c63af3a2da98c0efe8c35.tar.gz packages_apps_Browser-eb0498226a10816b992c63af3a2da98c0efe8c35.tar.bz2 |
fix titlebar position when focused
Change-Id: Ia84990a68652bd4679be2f72446aa166f7729c7c
Diffstat (limited to 'src/com/android/browser/BaseUi.java')
-rw-r--r-- | src/com/android/browser/BaseUi.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 5daf17a..e661087 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java @@ -453,6 +453,9 @@ public abstract class BaseUi implements UI, WebViewFactory { if (web != null) { web.setTitleBarGravity(gravity); } + // update the titlebar layout params + // required to avoid scroll to top when focused + getTitleBar().setTitleGravity(gravity); } @Override |