summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-05-31 18:01:53 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:50 +0200
commit68e1521085e9d213d1413222a3197b94b7d5e155 (patch)
tree958c6858da39fe924a3c654b53d43cd28210b0ac
parente627f3f8aa6d13144c2453cf56aca9f9b08bf5b1 (diff)
downloadandroid_packages_apps_Snap-68e1521085e9d213d1413222a3197b94b7d5e155.zip
android_packages_apps_Snap-68e1521085e9d213d1413222a3197b94b7d5e155.tar.gz
android_packages_apps_Snap-68e1521085e9d213d1413222a3197b94b7d5e155.tar.bz2
Snap: Only override power key
Partially revert "Snap: Use new window manager flag for prevent system keys." CYNGNOS-2958 Change-Id: I1e726aa77a6db17c8586c19ddc3b9b31b4077194
-rwxr-xr-xsrc/com/android/camera/CameraActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 347a60f..f7aa35a 100755
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -1966,10 +1966,10 @@ public class CameraActivity extends Activity
}
if (mPowerShutter && mInCameraApp) {
getWindow().addPrivateFlags(
- WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_SYSTEM_KEYS);
+ WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_POWER_KEY);
} else {
getWindow().clearPrivateFlags(
- WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_SYSTEM_KEYS);
+ WindowManager.LayoutParams.PRIVATE_FLAG_PREVENT_POWER_KEY);
}
}