summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-08-21 19:04:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-08-21 19:04:49 +0000
commit8e70a2826e01a529967f5b501512d7ce445ba2f6 (patch)
tree29d2bc8d5cae1e7bafc62ea814a91f20cdc2ccc9
parent5ca4cef9b5ba786bd2ecdb6043de87be6040d7df (diff)
parenta5f043a6a0845b23a203c973482a4126f65fc51e (diff)
downloadbase-8e70a2826e01a529967f5b501512d7ce445ba2f6.tar.gz
Merge "Mark USAGE_NOTIFICATION_EVENT vibrations as notifications" into qt-r1-dev
-rw-r--r--services/core/java/com/android/server/VibratorService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/VibratorService.java b/services/core/java/com/android/server/VibratorService.java
index 07482796b027..9936d73fb800 100644
--- a/services/core/java/com/android/server/VibratorService.java
+++ b/services/core/java/com/android/server/VibratorService.java
@@ -1188,6 +1188,7 @@ public class VibratorService extends IVibratorService.Stub
private static boolean isNotification(int usageHint) {
switch (usageHint) {
case AudioAttributes.USAGE_NOTIFICATION:
+ case AudioAttributes.USAGE_NOTIFICATION_EVENT:
case AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_REQUEST:
case AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_INSTANT:
case AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_DELAYED: