summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-10-29 15:16:26 -0700
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2016-02-09 08:45:47 -0800
commite486d56b1a59212015b68dd3cba6be9a9e1f7f08 (patch)
tree9bde3521a7d78f017bb585bc32b578b1d54b59a4 /packages/SystemUI/src
parent7829f8b163f80cc76500a6e7440d82f2cd001ab7 (diff)
downloadframeworks_base-e486d56b1a59212015b68dd3cba6be9a9e1f7f08.zip
frameworks_base-e486d56b1a59212015b68dd3cba6be9a9e1f7f08.tar.gz
frameworks_base-e486d56b1a59212015b68dd3cba6be9a9e1f7f08.tar.bz2
Keyguard: Show backdrop when sim pin secure screen shown
Devices that support bluring remove FLAG_SHOW_WALLPAPER from the layout params flags which causes the foreground activity to be completely visible when the sim pin security screen is shown. If this screen is visible we treat it as if the keyguard is visible and show the backdrop if available, otherwise it is blurred. Change-Id: Ifeae28816cc2f1fad30a2edf1cf51d5cabb005e9 TICKET: CYNGNOS-1266
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 41fd86a..9b3944d 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -2149,7 +2149,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
backdropBitmap = mKeyguardWallpaper;
}
- boolean keyguardVisible = (mState != StatusBarState.SHADE);
+ // HACK: Consider keyguard as visible if showing sim pin security screen
+ KeyguardUpdateMonitor updateMonitor = KeyguardUpdateMonitor.getInstance(mContext);
+ boolean keyguardVisible = mState != StatusBarState.SHADE || updateMonitor.isSimPinSecure();
if (!mKeyguardFadingAway && keyguardVisible && backdropBitmap != null && mScreenOn) {
// if there's album art, ensure visualizer is visible