OSDN Git Service

Use the green box's padding, and not the TitleBar's padding.
authorLeon Scroggins <scroggo@google.com>
Thu, 15 Apr 2010 14:55:02 +0000 (10:55 -0400)
committerLeon Scroggins <scroggo@google.com>
Thu, 15 Apr 2010 14:55:02 +0000 (10:55 -0400)
Bug 2566133

Change-Id: Ia780bcc74ad7317dfeea3adfc9a8c5eb4609d1f2

src/com/android/browser/TitleBar.java

index fc39f36..dc4979b 100644 (file)
@@ -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;