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

Commit 445abd48 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...

Merge "Move SECRET_CODE_ACTION from Telephony.Sms.Intents to TelephonyManager." am: 138ad61a am: facdbb44
am: d51ad164

Change-Id: I0aaf0f349df06005f94a85e8b8e0a41008d7ea99
parents 38dc92e5 d51ad164
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);
        }
    }