commit | a19b09645b3626084d30456e3f5674a56c50c465 | [log] [tgz] |
---|---|---|
author | Grace Jia <xiaotonj@google.com> | Thu Sep 15 17:35:25 2022 -0700 |
committer | Grace Jia <xiaotonj@google.com> | Fri Sep 16 00:42:04 2022 +0000 |
tree | 08929233fb9eaff63920a2f9e773a958849ae82c | |
parent | fd4d7c2d28802377c911c722b2a05363db2bb79e [diff] |
Fix vibration issue in DND mode. Currently if user turn on the vibrator or set a ringtone with haptic channel, we only evaluate the ringer mode using AudioManager#getRingerMode. While in DND mode, this value will always be SILENT. For cases that some call can bypass the dnd check, we need bypass the ringer mode check when we try to start the vibration. Bug: 244887005 Test: TelecomUnitTestCases:RingerTest Change-Id: Ic327d81e247c429a44f2aaec34e1897c00338427