|
|
@ -1196,7 +1196,7 @@ public class SimUtil {
|
|
|
|
if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
|
|
|
|
if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (localSubscriptionManager.getActiveSubscriptionInfoCount() > 1) {
|
|
|
|
if (localSubscriptionManager.getActiveSubscriptionInfoCount() > 0) {
|
|
|
|
List localList = localSubscriptionManager.getActiveSubscriptionInfoList();
|
|
|
|
List localList = localSubscriptionManager.getActiveSubscriptionInfoList();
|
|
|
|
boolean doubleSim = isDoubleSim(mContext);
|
|
|
|
boolean doubleSim = isDoubleSim(mContext);
|
|
|
|
SubscriptionInfo simInfoAnother = null;
|
|
|
|
SubscriptionInfo simInfoAnother = null;
|
|
|
@ -1208,6 +1208,10 @@ public class SimUtil {
|
|
|
|
simInfoAnother = (SubscriptionInfo) localList.get(1);
|
|
|
|
simInfoAnother = (SubscriptionInfo) localList.get(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (localList != null && localList.size() > 0) {
|
|
|
|
|
|
|
|
simInfoAnother = (SubscriptionInfo) localList.get(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Intent itSend = new Intent(SMS_SEND_ACTION);
|
|
|
|
Intent itSend = new Intent(SMS_SEND_ACTION);
|
|
|
|
itSend.putExtra(SMSRESTARTTYPE, restartType);
|
|
|
|
itSend.putExtra(SMSRESTARTTYPE, restartType);
|
|
|
|