From 483d90b55255996e73c15eef1899d595a10b7c53 Mon Sep 17 00:00:00 2001 From: Wilson Wu Date: Mon, 1 Jul 2024 08:06:41 +0000 Subject: [PATCH] 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 --- .../KeyboardVibrationTogglePreferenceController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/accessibility/KeyboardVibrationTogglePreferenceController.java b/src/com/android/settings/accessibility/KeyboardVibrationTogglePreferenceController.java index 15bdda49f02..3ba0f0d0841 100644 --- a/src/com/android/settings/accessibility/KeyboardVibrationTogglePreferenceController.java +++ b/src/com/android/settings/accessibility/KeyboardVibrationTogglePreferenceController.java @@ -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) {