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

Commit 0aecc093 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Don't update light reveal amt on doze change if biometric is wakeUnlocking

Test: manually auth with fingerprint from
AOD with udfps flag enabled and light reveal
migration flag disabled, don't see any flicker
Fixes: 329575586
Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor TEAMFOOD

Change-Id: I930a7108bd897ceb53eafbe135e376db8ba07090
parent ea141d2f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3147,8 +3147,15 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
                public void onDozeAmountChanged(float linear, float eased) {
                    if (!lightRevealMigration()
                            && !(mLightRevealScrim.getRevealEffect() instanceof CircleReveal)) {
                        if (DeviceEntryUdfpsRefactor.isEnabled()) {
                            // If wakeAndUnlocking, this is handled in AuthRippleInteractor
                            if (!mBiometricUnlockController.isWakeAndUnlock()) {
                                mLightRevealScrim.setRevealAmount(1f - linear);
                            }
                        } else {
                            mLightRevealScrim.setRevealAmount(1f - linear);
                        }
                    }
                }

                @Override