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

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

Do not schedule animation if control doesn't change

Test: LauncherJankTests
Change-Id: If9cf24051e3d7e53cb854c2e9874a0b3492f0210
Fixes: 120565961
parent 15637fdd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -202,6 +202,9 @@ class InsetsStateController {
    }

    private void notifyPendingInsetsControlChanged() {
        if (mPendingControlChanged.isEmpty()) {
            return;
        }
        mDisplayContent.mWmService.mAnimator.addAfterPrepareSurfacesRunnable(() -> {
            for (int i = mPendingControlChanged.size() - 1; i >= 0; i--) {
                final WindowState controllingWin = mPendingControlChanged.valueAt(i);