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

Commit aa7a2a51 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Allow broadcast receivers to receive DATA_SMS_RECEIVED_ACTION." into oc-dev

am: 6b47ea37

Change-Id: I92c9c1b129c65a93fc60e196ff0c95928f37ff58
parents 762dc28e 6b47ea37
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1121,6 +1121,9 @@ public abstract class InboundSmsHandler extends StateMachine {
            Uri uri = Uri.parse("sms://localhost:" + destPort);
            intent.setData(uri);
            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);
        }

        Bundle options = handleSmsWhitelisting(intent.getComponent());