diff options
| author | 2021-02-08 16:35:36 +0000 | |
|---|---|---|
| committer | 2021-02-22 01:08:18 +0000 | |
| commit | 235645330686aadf5102242fa114ad2808072070 (patch) | |
| tree | 71f9ea27695dc24b128c4904f0f9fde0490e2632 /cmds/bootanimation/BootAnimationUtil.cpp | |
| parent | 8a6a2bce6c1a1d46c7516baa9f7501f2c75caa37 (diff) | |
Constrain scaled amplitude to valid values in [1,255]
Scaling down low amplitudes can lead to one-shot effects with amplitude
zero, which leads to an invalid VibrationEffect and causes
IllegalArgumentException to be thrown on an originally valid effect.
Bug: 179674498
Test: VibrationEffectTest
Change-Id: Ie653084d37f9bfed20aac25f8805ffdf40661e03
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions