Fix some paddings in QS
QS headers are centered in a row of fixed height. They don't need status bar padding. Test: manual Fixes: 189982925 Change-Id: I085c71d6f58ab26e0a20632dae7f46e4bdc127f8
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
android:layout_gravity="top"
|
||||
android:orientation="horizontal"
|
||||
android:clickable="true"
|
||||
android:paddingTop="@dimen/status_bar_padding_top"
|
||||
android:minHeight="48dp">
|
||||
|
||||
<FrameLayout
|
||||
|
||||
@@ -79,7 +79,6 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
private TintedIconManager mTintedIconManager;
|
||||
private QSExpansionPathInterpolator mQSExpansionPathInterpolator;
|
||||
|
||||
private int mStatusBarPaddingTop = 0;
|
||||
private int mRoundedCornerPadding = 0;
|
||||
private int mWaterfallTopInset;
|
||||
private int mCutOutPaddingLeft;
|
||||
@@ -209,7 +208,6 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
|
||||
mRoundedCornerPadding = resources.getDimensionPixelSize(
|
||||
R.dimen.rounded_corner_content_padding);
|
||||
mStatusBarPaddingTop = resources.getDimensionPixelSize(R.dimen.status_bar_padding_top);
|
||||
|
||||
int qsOffsetHeight = resources.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.quick_qs_offset_height);
|
||||
@@ -469,11 +467,11 @@ public class QuickStatusBarHeader extends FrameLayout {
|
||||
}
|
||||
|
||||
mDatePrivacyView.setPadding(paddingLeft,
|
||||
mWaterfallTopInset + mStatusBarPaddingTop,
|
||||
mWaterfallTopInset,
|
||||
paddingRight,
|
||||
0);
|
||||
mClockIconsView.setPadding(paddingLeft,
|
||||
mWaterfallTopInset + mStatusBarPaddingTop,
|
||||
mWaterfallTopInset,
|
||||
paddingRight,
|
||||
0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user