OSDN Git Service

Refactor how StatusBarPolicy knows if keyguard is visible.
authorNicolas Prevot <nprevot@google.com>
Tue, 17 May 2016 11:52:54 +0000 (12:52 +0100)
committerNicolas Prevot <nprevot@google.com>
Tue, 17 May 2016 18:36:44 +0000 (19:36 +0100)
commit1dbbe7d664b16aad502730933f67a24152a81165
treeba7cd620379b88f1b129265d5115d4ddffe51572
parentbc73347152a3562a7f957a07433d64912f4acd83
Refactor how StatusBarPolicy knows if keyguard is visible.

In the case where the keyguard has never been shown and thus
never been dismissed: StatusBarPolicy thought the keyguard was
still visible.

Instead of StatusBarPolicy keeping its own internal variable
for wether the keyguard is visible, directly use
StatusBarKeyguardViewManager.isShowing()

BUG:28755086
Change-Id: I1b30c0e6985aa7ff35eea41444ab5504c00ff130
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java