diff options
| author | 2024-10-23 01:56:28 +0000 | |
|---|---|---|
| committer | 2024-10-23 03:39:22 +0000 | |
| commit | aa974cf42b0b6a69ec60727fe248a1d22be1fe14 (patch) | |
| tree | 184fe96c6bf4ffe17ea09276e9e10bcae994b4e9 /libs/androidfw/misc.cpp | |
| parent | 52b7229db32bfe75bf42c2d52002e54ee4295784 (diff) | |
Add null check in vibration util methods
To avoid an exception when given ringtone uri
is null, add null check in hasVibration method.
Also add a check in getVibrationUri method to
avoid any potential exception in the future.
Flag: EXEMPT bugfix
Fix: 374858125
Test: atest RingtoneManagerTest
Test: atest RingtoneTest
Test: atest RingerTest
Change-Id: I51b28dcd349ac040273168aa6bac1427f20d7d95
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions