Use main looper for PhoneStateListener
Also init all subIds to INVALID in constructor Change-Id: Ic66a2e5a24dbc10d52db0069f0e863c96ec12513 Fixes: 118070636 Test: Manual
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.settings.network.telephony;
|
||||
import android.content.Context;
|
||||
import android.os.PersistableBundle;
|
||||
import android.telephony.CarrierConfigManager;
|
||||
import android.telephony.SubscriptionManager;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.preference.Preference;
|
||||
@@ -37,6 +38,7 @@ public class CarrierPreferenceController extends BasePreferenceController {
|
||||
public CarrierPreferenceController(Context context, String key) {
|
||||
super(context, key);
|
||||
mCarrierConfigManager = new CarrierConfigManager(context);
|
||||
mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
|
||||
}
|
||||
|
||||
public void init(int subId) {
|
||||
|
||||
Reference in New Issue
Block a user