Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9c97fd6 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Minor QS visual fixes"

parents 37a01027 b77b8a4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    <com.android.systemui.settings.brightness.BrightnessSliderView
        android:id="@+id/brightness_slider"
        android:layout_width="0dp"
        android:layout_height="48dp"
        android:layout_height="@dimen/brightness_mirror_height"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:contentDescription="@string/accessibility_brightness"
+2 −3
Original line number Diff line number Diff line
@@ -63,7 +63,6 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
    private int mPageToRestore = -1;
    private int mLayoutOrientation;
    private int mLayoutDirection;
    private int mHorizontalClipBound;
    private final Rect mClippingRect;
    private final UiEventLogger mUiEventLogger = QSEvents.INSTANCE.getQsUiEventsLogger();
    private int mExcessHeight;
@@ -333,7 +332,6 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
        // Update bottom padding, useful for removing extra space once the panel page indicator is
        // hidden.
        Resources res = getContext().getResources();
        mHorizontalClipBound = res.getDimensionPixelSize(R.dimen.notification_side_paddings);
        setPadding(0, 0, 0,
                getContext().getResources().getDimensionPixelSize(
                        R.dimen.qs_paged_tile_layout_padding_bottom));
@@ -351,7 +349,8 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);
        mClippingRect.set(mHorizontalClipBound, 0, (r - l) - mHorizontalClipBound, b - t);
        // Clip to margins
        mClippingRect.set(0, 0, (r - l), b - t);
        setClipBounds(mClippingRect);
    }