summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-09-30 11:55:54 -0400
committerLeon Scroggins <scroggo@google.com>2009-09-30 11:55:54 -0400
commit83932c74ba031eb2f581f1557c1a90f4b5bbb423 (patch)
treef8b87dde54bf3ead5f23c313e67c01a004d916c2 /src/com/android
parent9957024e9a4c904c83d76df03c4ebf9bdaa5f4c6 (diff)
downloadpackages_apps_Browser-83932c74ba031eb2f581f1557c1a90f4b5bbb423.zip
packages_apps_Browser-83932c74ba031eb2f581f1557c1a90f4b5bbb423.tar.gz
packages_apps_Browser-83932c74ba031eb2f581f1557c1a90f4b5bbb423.tar.bz2
Slide the title bar onto the screen rather than stretching it.
Fix for http://b/issue?id=2154614 Also update the header for the find dialog animations. Change-Id: Ibf40bd9ee12c270c2794d4d2316143686a072458
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/BrowserActivity.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 1954dad..1e7361b 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -1021,8 +1021,7 @@ public class BrowserActivity extends Activity
params.gravity = Gravity.TOP;
WebView mainView = mTabControl.getCurrentWebView();
boolean atTop = mainView != null && mainView.getScrollY() == 0;
- params.windowAnimations = atTop ? 0
- : com.android.internal.R.style.Animation_DropDownDown;
+ params.windowAnimations = atTop ? 0 : R.style.TitleBar;
// XXX : Without providing an offset, the fake title bar will be
// placed underneath the status bar. Use the global visible rect
// of mBrowserFrameLayout to determine the bottom of the status bar
@@ -1063,7 +1062,7 @@ public class BrowserActivity extends Activity
// fake title bar was displayed. Make sure it has the appropriate
// animation/lack thereof before removing.
params.windowAnimations = mainView != null && mainView.getScrollY() == 0
- ? 0 : com.android.internal.R.style.Animation_DropDownDown;
+ ? 0 : R.style.TitleBar;
WindowManager manager
= (WindowManager) getSystemService(Context.WINDOW_SERVICE);
manager.updateViewLayout(mFakeTitleBarHolder, params);