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

Commit 651b8436 authored by Andreas Miko's avatar Andreas Miko
Browse files

Fix LockIcon animation

There were occasions where the lock icon would not appear or at least
appear too late for the tests in b/309823964. The animation is not
necessary anymore because the underlying bug was fixed in the meantime.

Bug: b/309823964
Test: None
Flag: ACONFIG com.android.systemui.Flags.FLAG_NEW_AOD_TRANSITION TEAMFOOD
Change-Id: Ib4b6a9c3f2165f3b4eae4ecc77aac29ec4553f2b
parent ccfa738a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import static com.android.systemui.Flags.keyguardBottomAreaRefactor;
import static com.android.systemui.doze.util.BurnInHelperKt.getBurnInOffset;
import static com.android.systemui.flags.Flags.DOZING_MIGRATION_1;
import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED;
import static com.android.systemui.Flags.newAodTransition;
import static com.android.systemui.util.kotlin.JavaAdapterKt.collectFlow;

import android.annotation.SuppressLint;
@@ -395,16 +394,6 @@ public class LockIconViewController implements Dumpable {
            mView.updateIcon(ICON_LOCK, true);
            mView.setContentDescription(mLockedLabel);
            mView.setVisibility(View.VISIBLE);
        } else if (mIsDozing && newAodTransition()) {
            mView.animate()
                    .alpha(0f)
                    .setDuration(FADE_OUT_DURATION_MS)
                    .withEndAction(() -> {
                        mView.clearIcon();
                        mView.setVisibility(View.INVISIBLE);
                        mView.setContentDescription(null);
                    })
                    .start();
        } else {
            mView.clearIcon();
            mView.setVisibility(View.INVISIBLE);