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

Commit 877bf6fd authored by Arc Wang's avatar Arc Wang Committed by Gerrit Code Review
Browse files

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

parents 4919362b 47d8bf24
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));