am 19627ca2
: Getting mcc/mnc from system prop instead of subInfoRecord.
* commit '19627ca215fa643a443722f183f3f781d4a2b041': Getting mcc/mnc from system prop instead of subInfoRecord.
This commit is contained in:
@@ -53,6 +53,7 @@ import com.android.internal.telephony.Phone;
|
||||
import com.android.internal.telephony.PhoneConstants;
|
||||
import com.android.internal.telephony.TelephonyIntents;
|
||||
import com.android.internal.telephony.TelephonyProperties;
|
||||
import android.telephony.TelephonyManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -202,9 +203,10 @@ public class ApnSettings extends SettingsPreferenceFragment implements
|
||||
}
|
||||
|
||||
private void fillList() {
|
||||
final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
|
||||
final String mccmnc = mSubscriptionInfo == null ? ""
|
||||
: Integer.toString(mSubscriptionInfo.getMcc())
|
||||
+ Integer.toString(mSubscriptionInfo.getMnc());
|
||||
: tm.getSimOperator(mSubscriptionInfo.getSubscriptionId());
|
||||
Log.d(TAG, "mccmnc = " + mccmnc);
|
||||
final String where = "numeric=\""
|
||||
+ mccmnc
|
||||
+ "\"";
|
||||
|
Reference in New Issue
Block a user