Merge "Specifies RECEIVER_NOT_EXPORTED for FlashNotificationsController broadcast receiver" into udc-dev
This commit is contained in:
@@ -255,7 +255,7 @@ class FlashNotificationsController {
|
|||||||
broadcastFilter.addAction(ACTION_FLASH_NOTIFICATION_STOP_PREVIEW);
|
broadcastFilter.addAction(ACTION_FLASH_NOTIFICATION_STOP_PREVIEW);
|
||||||
mFlashBroadcastReceiver = new FlashBroadcastReceiver();
|
mFlashBroadcastReceiver = new FlashBroadcastReceiver();
|
||||||
mContext.registerReceiver(
|
mContext.registerReceiver(
|
||||||
mFlashBroadcastReceiver, broadcastFilter, Context.RECEIVER_EXPORTED);
|
mFlashBroadcastReceiver, broadcastFilter, Context.RECEIVER_NOT_EXPORTED);
|
||||||
|
|
||||||
final PowerManager powerManager = mContext.getSystemService(PowerManager.class);
|
final PowerManager powerManager = mContext.getSystemService(PowerManager.class);
|
||||||
mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG);
|
mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG);
|
||||||
|
|||||||
Reference in New Issue
Block a user