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

Commit c3081179 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix some jank in quick settings

- Don't use layers for tiles - that leads to jank and it's not used.
- Force the ripple for the expand button in software, so we don't
get scheduling issues with RenderThread.

Bug: 28095199
Change-Id: Ie46a0d54850d7eec1bd5412be8d4a8f0ff4b91d6
parent ab9b01cc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -93,6 +93,12 @@ public class QSTileBaseView extends LinearLayout {
        }
    }

    @Override
    public boolean hasOverlappingRendering() {
        // Avoid layers for this layout - we don't need them.
        return false;
    }

    /**
     * Update the accessibility order for this view.
     *
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ public class QuickStatusBarHeader extends BaseStatusBarHeader implements
        // RenderThread is doing more harm than good when touching the header (to expand quick
        // settings), so disable it for this view
        ((RippleDrawable) mSettingsButton.getBackground()).setForceSoftware(true);
        ((RippleDrawable) mExpandIndicator.getBackground()).setForceSoftware(true);

        updateResources();
    }