Clean up the keyboard vibration config
-. Remove the device config in Settings -. Use the new config in frameworks/base Flag: EXEMPT refactor Bug: 332661307 Test: atest KeyboardVibrationTogglePreferenceControllerTest Change-Id: I2fe70d830d55ec6f33597fbe0ed107b41eb3bdd7
This commit is contained in:
@@ -111,9 +111,8 @@ public class KeyboardVibrationTogglePreferenceController extends TogglePreferenc
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (Flags.keyboardCategoryEnabled()
|
||||
&& mContext.getResources().getBoolean(R.bool.config_keyboard_vibration_supported)
|
||||
&& mContext.getResources().getFloat(
|
||||
com.android.internal.R.dimen.config_keyboardHapticFeedbackFixedAmplitude) > 0) {
|
||||
&& mContext.getResources().getBoolean(
|
||||
com.android.internal.R.bool.config_keyboardVibrationSettingsSupported)) {
|
||||
return AVAILABLE;
|
||||
}
|
||||
return UNSUPPORTED_ON_DEVICE;
|
||||
|
Reference in New Issue
Block a user