summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/Window.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/view/Window.java')
-rw-r--r--core/java/android/view/Window.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java
index 3616622..5811ef9 100644
--- a/core/java/android/view/Window.java
+++ b/core/java/android/view/Window.java
@@ -869,9 +869,9 @@ public abstract class Window {
}
private void setPrivateFlags(int flags, int mask) {
- if ((flags & mask & WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_POWER_KEY) != 0){
- mContext.enforceCallingOrSelfPermission("android.permission.PREVENT_POWER_KEY",
- "No permission to prevent power key");
+ if ((flags & mask & WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_SYSTEM_KEYS) != 0){
+ mContext.enforceCallingOrSelfPermission("android.permission.PREVENT_SYSTEM_KEYS",
+ "No permission to prevent system key");
}
final WindowManager.LayoutParams attrs = getAttributes();
attrs.privateFlags = (attrs.privateFlags & ~mask) | (flags & mask);