Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" am: ddf215dd58 am: cb0d068f28
am: 4f47555359
Change-Id: Iafa9facfbb0759916cd414b23da19f9a3c367a55
This commit is contained in:
@@ -44,7 +44,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;
|
||||
@@ -1379,7 +1378,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);
|
||||
|
||||
Reference in New Issue
Block a user