Simplify default keyboard vibration settings value
CL[1] remove the default keyboard vibration state device config, use the fixed value in the controller. [1]: I9060fbc83087599fa0d9a56be3de27a2dcf15a94 Flag: EXEMPT refactor Bug: 332660772 Test: atest KeyboardVibrationTogglePreferenceControllerTest Change-Id: I7e5a195047e96582bd80898134051924c0ad72ab
This commit is contained in:
@@ -154,8 +154,8 @@ public class KeyboardVibrationTogglePreferenceController extends TogglePreferenc
|
||||
}
|
||||
|
||||
private boolean isKeyboardVibrationSwitchEnabled() {
|
||||
return Settings.System.getInt(mContext.getContentResolver(), KEYBOARD_VIBRATION_ENABLED,
|
||||
mVibrator.isDefaultKeyboardVibrationEnabled() ? ON : OFF) == ON;
|
||||
return Settings.System.getInt(
|
||||
mContext.getContentResolver(), KEYBOARD_VIBRATION_ENABLED, ON) == ON;
|
||||
}
|
||||
|
||||
private boolean updateKeyboardVibrationSetting(boolean enable) {
|
||||
|
Reference in New Issue
Block a user