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

Commit b35abd6e 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

am: d15963a2

Change-Id: I0545f5ebd2c16c9afebb1bf16b76e29f5727f7eb
parents d6b2bafb d15963a2
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));