+1
−9
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Don't wait for the end of the GONE => AOD animation to show the icon. Previously, we waited until the end of the GONE => AOD animation to show the icon because we didn't want to show the icon in the "unlocked state" since the icon was previously reliant on the isKeyguardDismissible state which was reliant on the isKeyguardShowing state which wasn't updated until the middle of GONE => AOD. Therefore, this CL also changes the device entry icon's isUnlocked check to hasTrust instead of isKeyguardDismissible which is not reliatn on whether the keygaurd is showing or now. In general, hasTrust becomes true when something has authenticated the device (face auth, fingerprint, trust agent etc) but almost immediately is updated to false once the user enters the device, so the next time the device animates to the lockscreen, hasTrust is always false. Flag: EXEMPT bugfix Test: atest GoneToAodTransitionViewModelTest DeviceEntryIconViewModelTest Fixes: 428966992 Change-Id: I0f965e807e64ecf147bda300e49dda8956404fe3