Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42d58582 authored by Daniel Norman's avatar Daniel Norman Committed by Android (Google) Code Review
Browse files

Merge "Specifies RECEIVER_EXPORTED for FlashNotificationsController broadcast receiver."

parents 3260acee e080ce25
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -253,7 +253,8 @@ class FlashNotificationsController {
        broadcastFilter.addAction(ACTION_FLASH_NOTIFICATION_START_PREVIEW);
        broadcastFilter.addAction(ACTION_FLASH_NOTIFICATION_STOP_PREVIEW);
        mFlashBroadcastReceiver = new FlashBroadcastReceiver();
        mContext.registerReceiver(mFlashBroadcastReceiver, broadcastFilter);
        mContext.registerReceiver(
                mFlashBroadcastReceiver, broadcastFilter, Context.RECEIVER_EXPORTED);

        final PowerManager powerManager = mContext.getSystemService(PowerManager.class);
        mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG);