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

Commit cb0d068f authored by Meng Wang's avatar Meng Wang Committed by android-build-merger
Browse files

Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY"

am: ddf215dd

Change-Id: I68194558a0266cabedf81cdf43b73dba69d02779
parents 0bcd4fc5 ddf215dd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@ import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Patterns;

import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.SmsApplication;

import java.lang.annotation.Retention;
@@ -1344,7 +1343,7 @@ public final class Telephony {
                }

                String format = intent.getStringExtra("format");
                int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY,
                int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX,
                        SubscriptionManager.getDefaultSmsSubscriptionId());

                Rlog.v(TAG, " getMessagesFromIntent sub_id : " + subId);