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

Commit d15963a2 authored by Arc Wang's avatar Arc Wang Committed by android-build-merger
Browse files

Merge "Add flag Intent.FLAG_RECEIVER_FOREGROUND to emergency cellbroadcast intent."

am: 877bf6fd

Change-Id: If947865e57221a4a05a6010318eb462a70617333
parents 13171b82 877bf6fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -103,6 +103,8 @@ public class CellBroadcastHandler extends WakeLockStateMachine {
            log(msg);
            mLocalLog.log(msg);
            intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION);
            //Emergency alerts need to be delivered with high priority
            intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            // Explicitly send the intent to the default cell broadcast receiver.
            intent.setPackage(mContext.getResources().getString(
                    com.android.internal.R.string.config_defaultCellBroadcastReceiverPkg));