From 83932c74ba031eb2f581f1557c1a90f4b5bbb423 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Wed, 30 Sep 2009 11:55:54 -0400 Subject: 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 --- src/com/android/browser/BrowserActivity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/com/android/browser/BrowserActivity.java') 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); -- cgit v1.1