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

Commit 02f0a106 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Remove leftover cancelledUserAnimationTypes

This was originally introduced in [1] to track disabling user
animations on insets with null or empty visible frames. This was later
reverted in [2], with this array left over but essentially unused.

 [1]: Id70f59be7653beedc02d6c8bc3b1bd50a357f4fe
 [2]: I3210df9bcc087f5fba712e0e7ac4922475c3b88d

Flag: EXEMPT cleanup
Bug: 281029564
Test: n/a
Change-Id: I5da7282b2a8b29b58796210793267c2abac441af
parent bfe2c0c9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -884,7 +884,6 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
        mState.set(newState, 0 /* types */);
        @InsetsType int existingTypes = 0;
        @InsetsType int visibleTypes = 0;
        @InsetsType int[] cancelledUserAnimationTypes = {0};
        for (int i = 0, size = newState.sourceSize(); i < size; i++) {
            final InsetsSource source = new InsetsSource(newState.sourceAt(i));
            @InsetsType int type = source.getType();
@@ -917,10 +916,6 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
            mExistingTypes = existingTypes;
        }
        InsetsState.traverse(mState, newState, mRemoveGoneSources);

        if (cancelledUserAnimationTypes[0] != 0) {
            mHandler.post(() -> show(cancelledUserAnimationTypes[0]));
        }
    }

    /**