From 7fb1a353c94736dfcde690d8379e3bfd853362dd Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Thu, 15 Apr 2010 10:55:02 -0400 Subject: Use the green box's padding, and not the TitleBar's padding. Bug 2566133 Change-Id: Ia780bcc74ad7317dfeea3adfc9a8c5eb4609d1f2 --- src/com/android/browser/TitleBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java index fc39f36..dc4979b 100644 --- a/src/com/android/browser/TitleBar.java +++ b/src/com/android/browser/TitleBar.java @@ -281,8 +281,8 @@ public class TitleBar extends LinearLayout { mRtButton.setVisibility(View.VISIBLE); mStopButton.setVisibility(View.GONE); mTitleBg.setBackgroundDrawable(titleDrawable); - mTitleBg.setPadding(mLeftMargin, getPaddingTop(), mRightMargin, - getPaddingBottom()); + mTitleBg.setPadding(mLeftMargin, mTitleBg.getPaddingTop(), + mRightMargin, mTitleBg.getPaddingBottom()); } else { if (mInLoad) { titleDrawable = mLoadingBackground; -- cgit v1.1