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

Commit 5ac6ec9d authored by Beverly's avatar Beverly
Browse files

Show AOD device entry icon with other LS views

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
parent 2397c213
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment