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

Commit 2d0123fd authored by Michał Brzeziński's avatar Michał Brzeziński Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Moving hardware layer to the parent of brightnes..."" into main

parents d6c34259 b849d96f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ public class QSContainerImpl extends FrameLayout implements Dumpable {
    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        // set layer to make alpha animation of brightness slider nicer - otherwise elements
        // of slider are animated separately and it doesn't look good. See b/329244723
        setLayerType(LAYER_TYPE_HARDWARE, null);

        mQSPanelContainer = findViewById(R.id.expanded_qs_scroll_view);
        mQSPanel = findViewById(R.id.quick_settings_panel);
        mHeader = findViewById(R.id.header);
+0 −1
Original line number Diff line number Diff line
@@ -63,7 +63,6 @@ public class BrightnessSliderView extends FrameLayout {
    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        setLayerType(LAYER_TYPE_HARDWARE, null);

        mSlider = requireViewById(R.id.slider);
        mSlider.setAccessibilityLabel(getContentDescription().toString());