diff options
| author | 2024-08-08 11:46:18 +0000 | |
|---|---|---|
| committer | 2024-08-09 12:14:17 +0000 | |
| commit | d235457b0bfe717d114c17701ce69e61ebfbba05 (patch) | |
| tree | 775773fb1558ea63236680ad6cbc7446c648c3b3 /api/coverage/tools | |
| parent | 645703e77a756e4441c41c5e359d40cbaad70aa3 (diff) | |
Use USAGE_IME_FEEDBACK in VibrationSettings#shouldVibrateForUserSetting
Fix a refactoring bug that in VibrationSettings#shouldVibrateForUserSetting
that we missed to re-calcuate the keyboard intensity to be
VIBRATION_INTENSITY_OFF when the user turned off the keyboard vibration
setting.
Also fix the unit test assertion in VibrationSettingsTest for testing
shouldIgnoreVibration() behavior when keyboard vibration setting on/off
Also remove mKeyboardVibrationOn from VibrationSettings, since now the
keyboard vibration intensity is now reflecting the current vibration
usage (USAGE_IME_FEEDBACK) without using this adhoc flag.
Flag: EXEMPT refactor
Bug: 358019438
Test: atest VibrationSettingsTest
Change-Id: I6ca03a58bef2d399e4afb55b4afd9958b4312d4a
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions