OSDN Git Service

QS: Fix second line in dual tiles
authorJason Monk <jmonk@google.com>
Thu, 22 Jan 2015 15:39:37 +0000 (10:39 -0500)
committerJason Monk <jmonk@google.com>
Thu, 22 Jan 2015 15:40:54 +0000 (10:40 -0500)
QSDualTileLabel is no longer a FrameLayout (now a LinearLayout),
so it does not need the top padding based on the caret size
anymore.

Bug: 18725348
Change-Id: Ibd3aaa20e7cdb35ba585cc5c8981c64efb5c66fe

packages/SystemUI/src/com/android/systemui/qs/QSDualTileLabel.java

index a9fdc86..67cfc59 100644 (file)
@@ -100,9 +100,6 @@ public class QSDualTileLabel extends LinearLayout {
         mFirstLineCaret.setImageDrawable(d);
         if (d != null) {
             final int h = d.getIntrinsicHeight();
-            final LayoutParams lp = (LayoutParams) mSecondLine.getLayoutParams();
-            lp.topMargin = h * 4 / 5;
-            mSecondLine.setLayoutParams(lp);
             mFirstLine.setMinHeight(h);
             mFirstLine.setPadding(mHorizontalPaddingPx, 0, 0, 0);
         }