Don't show UDFPS when statusBarState != KEYGUARD
However, we allow the UDFPS icon to show when the status
bar isn't the keyguard ONLY when the screen off animation
is running since the statusBarState is delayed in changing
during that time. Previously, we were checking that the device
wasn't dozing; however, this was causing the UDFPS icon to flash
when a notification was expanded from AOD since the expansion
happens when transitioning from DOZE => LS.
Fixes: 235170617
Test: atest UdfpsKeyguardViewControllerTest
Test: screen off from the home screen,
the UDFPS icon fades in on AOD (doesn't blink in)
Test: Expand a pulsing notification from AOD, observe
there's mistaken show of the UDFPS icon
Change-Id: Ifa10b09c3f84045c71614d05eaee28353196b2e3
1 file changed