Enable controllers to use a custom key.
Test: atest SettingsUnitTests Test: m -j45 RunSettingsRoboTests Bug: 191763369 Change-Id: I48eea95613600580c80c8850f0a3fd543a7e0a43
This commit is contained in:
@@ -41,7 +41,11 @@ public class SimLockPreferenceController extends BasePreferenceController {
|
||||
private TelephonyManager mTelephonyManager;
|
||||
|
||||
public SimLockPreferenceController(Context context) {
|
||||
super(context, KEY_SIM_LOCK);
|
||||
this(context, KEY_SIM_LOCK);
|
||||
}
|
||||
|
||||
public SimLockPreferenceController(Context context, String key) {
|
||||
super(context, key);
|
||||
mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
mCarrierConfigManager = (CarrierConfigManager)
|
||||
mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
|
||||
|
Reference in New Issue
Block a user