CMParts: KeyHandler: Add User to broadcast
Fixes:
W ContextImpl: Calling a method in the system process without a qualified user
Change-Id: Ibfb43118bde77b8723f0a00518916f9ffedfebc5
diff --git a/src/org/cyanogenmod/cmparts/gestures/KeyHandler.java b/src/org/cyanogenmod/cmparts/gestures/KeyHandler.java
index 7809b17..32b104e 100644
--- a/src/org/cyanogenmod/cmparts/gestures/KeyHandler.java
+++ b/src/org/cyanogenmod/cmparts/gestures/KeyHandler.java
@@ -242,7 +242,8 @@
private void launchCamera() {
mGestureWakeLock.acquire(GESTURE_WAKELOCK_DURATION);
final Intent intent = new Intent(cyanogenmod.content.Intent.ACTION_SCREEN_CAMERA_GESTURE);
- mContext.sendBroadcast(intent, Manifest.permission.STATUS_BAR_SERVICE);
+ mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT,
+ Manifest.permission.STATUS_BAR_SERVICE);
doHapticFeedback();
}