mainline: remove CarrierConfigManager.init
Bug: 147469789 Test: make RunSettingsRoboTests ROBOTEST_FILTER=\ ApnPreferenceControllerTest (PASS) make RunSettingsRoboTests ROBOTEST_FILTER=\ CarrierPreferenceControllerTest (PASS) Change-Id: I2a72d409574fc281e5de57d58a27551dd040d551
This commit is contained in:
@@ -52,7 +52,7 @@ public class ApnPreferenceController extends TelephonyBasePreferenceController i
|
||||
|
||||
public ApnPreferenceController(Context context, String key) {
|
||||
super(context, key);
|
||||
mCarrierConfigManager = new CarrierConfigManager(context);
|
||||
mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class);
|
||||
mDpcApnEnforcedObserver = new DpcApnEnforcedObserver(new Handler(Looper.getMainLooper()));
|
||||
}
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public class CarrierPreferenceController extends TelephonyBasePreferenceControll
|
||||
|
||||
public CarrierPreferenceController(Context context, String key) {
|
||||
super(context, key);
|
||||
mCarrierConfigManager = new CarrierConfigManager(context);
|
||||
mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class);
|
||||
}
|
||||
|
||||
public void init(int subId) {
|
||||
|
@@ -54,7 +54,7 @@ public class RoamingDialogFragment extends InstrumentedDialogFragment implements
|
||||
super.onAttach(context);
|
||||
final Bundle args = getArguments();
|
||||
mSubId = args.getInt(SUB_ID_KEY);
|
||||
mCarrierConfigManager = new CarrierConfigManager(context);
|
||||
mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user