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

Commit 60164ec1 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...

Merge "Add flag Intent.FLAG_RECEIVER_FOREGROUND to emergency cellbroadcast intent." am: 877bf6fd am: d15963a2
am: b35abd6e

Change-Id: I8bced1a9ae3f5d131a76be7145204337ad0b7c14
parents 049d8bc4 b35abd6e
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));