summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/res/values/config.xml3
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java6
2 files changed, 8 insertions, 1 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
index cdbe2fd..8ca58ba 100644
--- a/packages/SystemUI/res/values/config.xml
+++ b/packages/SystemUI/res/values/config.xml
@@ -300,5 +300,8 @@
<!-- Allow Flashlight service to use wakelock -->
<bool name="flashlight_use_wakelock">false</bool>
+ <!-- Allow device to be configured to show screen on hints on the lock screen -->
+ <bool name="config_showScreenOnLockScreenHints">false</bool>
+
</resources>
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 736fd7d..ef4aedb 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -290,6 +290,8 @@ public class NotificationPanelView extends PanelView implements
private boolean mUserInteractedWithLiveLockScreen;
private boolean mUserReturnedFromLiveLockScreen;
+ private boolean mScreenOnHintsEnabled;
+
private enum SwipeLockedDirection {
UNKNOWN,
HORIZONTAL,
@@ -425,6 +427,7 @@ public class NotificationPanelView extends PanelView implements
mScreenHeight = point.y;
mUnlockMethodCache = UnlockMethodCache.getInstance(context);
+ mScreenOnHintsEnabled = res.getBoolean(R.bool.config_showScreenOnLockScreenHints);
mUserUnlocked = getUserUnlocked();
mUserExpandedNotifications = getUserExpandedNotificationsInKeyguard();
mUserInteractedWithLiveLockScreen = getUserInteractedWithLls();
@@ -3069,6 +3072,7 @@ public class NotificationPanelView extends PanelView implements
}
private boolean shouldShowScreenOnHints() {
- return mStatusBar.isDeviceProvisioned() && mStatusBarState == StatusBarState.KEYGUARD;
+ return mScreenOnHintsEnabled && mStatusBar.isDeviceProvisioned() &&
+ mStatusBarState == StatusBarState.KEYGUARD;
}
}