OSDN Git Service

Escalate HeadsUp when dreaming starts
authorSelim Cinek <cinek@google.com>
Fri, 9 Sep 2016 21:58:41 +0000 (14:58 -0700)
committerSelim Cinek <cinek@google.com>
Mon, 12 Sep 2016 23:41:54 +0000 (16:41 -0700)
commit994153944e6d76d1b1a060afb131129172a915d1
treecc395385fe35ef98a296321ce1ecad6fd79f0b2b
parent09b7dea5b7613e3c96e46006a7b62e2ff84e77f2
Escalate HeadsUp when dreaming starts

1. When dreaming starts before locking, notifications can remain
pinned. This is because the device is locked without
screen off, and HeadsUp are not escalated.
As a result is the pinned heads up shown behind the bouncer
when unlocking.
In this case touchable bound is limited to headsup bounds,
so the user can't unlock at all.

2. Escalate HeadsUp when bar state changes to KEYGUARD

3. This also fixed a bug where the bouncer isn't touchable
When device is occluded and locked, HeadsUp can appear.
If the user then clicks on the HeadsUp and try to send
pending intent, Bouncer can be shown without expanding
panel.

Bug:30820511
Change-Id: I8604c9d00d839d773b32d8b913dfdcd2ed72f1dd
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpManager.java