summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/Window.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java
index 65577f0..50a926f 100644
--- a/core/java/android/view/Window.java
+++ b/core/java/android/view/Window.java
@@ -869,13 +869,6 @@ public abstract class Window {
}
private void setPrivateFlags(int flags, int mask) {
- int preventFlags = WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_POWER_KEY |
- WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_SYSTEM_KEYS;
-
- if ((flags & mask & preventFlags) != 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);
dispatchWindowAttributesChanged(attrs);