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

Skip to content
Commit baf80f6a authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Don't show the bouncer onPanelExpansionChanged when dozing + not pulsing

When the device goes to sleep from the power button,
the call to show the keyguard on AOD updates the
NotificationPanel expansion to show to see the AOD views.

However, with certain timing (keyguardShowing=true 'too early'),
the panel expansion change ends up showing the bouncer since
the panel expansion controls the bouncer when keyguardShowing=true.

Showing the bouncer subsequently wakes up the device,
resulting in the device waking up right after the user
pressed the power button with the intention to enter AoD.

This CL prevents onPanelExpansionChanged from effecting the
bouncer expansion when the device is dozing (and not pulsing).

Test: press power button from home screen & when qs is expanded,
notice that device consistently goes to sleep and doesn't immediately
wake back up
Test: fail udfps twice on AoD, see bouncer still apears
Test: receive a notification in AoD w/ an intent, tap on notification
and see bouncer (UDFPS or primary auth) appears
Fixes: 228788448

Change-Id: Ifb8888900a3bd2f229f4bfdda9a59f0778efc5dd
parent a3193ed1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment