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

Commit facdbb44 authored by Cassie Han's avatar Cassie Han Committed by android-build-merger
Browse files

Merge "Move SECRET_CODE_ACTION from Telephony.Sms.Intents to TelephonyManager."

am: 138ad61a

Change-Id: Ib4d11d99bf41b7437fac012903d4a8765b71e01b
parents 8384043d 138ad61a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2365,6 +2365,14 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
                    Uri.parse("android_secret_code://" + code));
            intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
            mContext.sendBroadcast(intent);

            // {@link TelephonyManager.ACTION_SECRET_CODE} will replace {@link
            // TelephonyIntents#SECRET_CODE_ACTION} in the next Android version. Before
            // that both of these two actions will be broadcast.
            Intent secrectCodeIntent = new Intent(TelephonyManager.ACTION_SECRET_CODE,
                    Uri.parse("android_secret_code://" + code));
            intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
            mContext.sendBroadcast(secrectCodeIntent);
        }
    }