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

Commit 3c3fc8a9 authored by Junda Liu's avatar Junda Liu Committed by android-build-merger
Browse files

Merge "Allowed broadcast receivers to receive SMS intents" am: 4e8bd838

am: 4a2bd3eb

Change-Id: Idddcd6f49a7e70b0796dc4c86c0d5c116afc7c51
parents c115c6ea 4a2bd3eb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1257,6 +1257,9 @@ public abstract class InboundSmsHandler extends StateMachine {
            if (action.equals(Intents.SMS_DELIVER_ACTION)) {
                // Now dispatch the notification only intent
                intent.setAction(Intents.SMS_RECEIVED_ACTION);
                // Allow registered broadcast receivers to get this intent even
                // when they are in the background.
                intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
                intent.setComponent(null);
                // All running users will be notified of the received sms.
                Bundle options = handleSmsWhitelisting(null);
@@ -1266,6 +1269,9 @@ public abstract class InboundSmsHandler extends StateMachine {
                // Now dispatch the notification only intent
                intent.setAction(Intents.WAP_PUSH_RECEIVED_ACTION);
                intent.setComponent(null);
                // Allow registered broadcast receivers to get this intent even
                // when they are in the background.
                intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
                // Only the primary user will receive notification of incoming mms.
                // That app will do the actual downloading of the mms.
                Bundle options = null;