Show policy transparency popup dialog for Bluetooth in Settings.
Bug: 70206452 Test: make ROBOTEST_FILTER=BluetoothEnablerTest -j40 RunSettingsRobotests Test: make ROBOTEST_FILTER=BluetoothSwitchPreferenceControllerTest -j40 RunSettingsRobotests Change-Id: I543cf69b754c44b02c66e101698f10906a1b957f
This commit is contained in:
@@ -109,7 +109,7 @@ public class BluetoothSwitchPreferenceController extends TogglePreferenceControl
|
||||
* Control the switch inside {@link SwitchPreference}
|
||||
*/
|
||||
@VisibleForTesting
|
||||
class SwitchController extends SwitchWidgetController implements
|
||||
static class SwitchController extends SwitchWidgetController implements
|
||||
Preference.OnPreferenceChangeListener {
|
||||
private SwitchPreference mSwitchPreference;
|
||||
|
||||
@@ -156,7 +156,7 @@ public class BluetoothSwitchPreferenceController extends TogglePreferenceControl
|
||||
|
||||
@Override
|
||||
public void setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) {
|
||||
mBtPreference.setEnabled(admin == null);
|
||||
mSwitchPreference.setEnabled(admin == null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user