From ab804f055444a93cb5bf20eb876dfd11971df427 Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 27 Sep 2017 09:58:59 -0400 Subject: In-call-notif doesn't use AUDIBILITY_ENFORCED flag Audibilty enforced flag should only be used to make sure system sounds are audible when this is mandated by a given country regulation. Here, it was used incorrectly. Also, adjusted in-call notification sound to be less loud. Fixes: 66808711 Test: manual Change-Id: I119a718fb5fc605b6f6b3e387e5e9f956cfd5fff --- core/res/res/values/config.xml | 2 +- .../com/android/server/notification/NotificationManagerService.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 9eed12f679c4..b2727f84e87f 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3023,7 +3023,7 @@ false - .25 + .10 /system/media/audio/ui/InCallNotification.ogg diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 08b96d104266..2c5ef23d07d4 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -1278,13 +1278,11 @@ public class NotificationManagerService extends SystemService { R.array.config_notificationFallbackVibePattern, VIBRATE_PATTERN_MAXLEN, DEFAULT_VIBRATE_PATTERN); - mInCallNotificationUri = Uri.parse("file://" + resources.getString(R.string.config_inCallNotificationSound)); mInCallNotificationAudioAttributes = new AudioAttributes.Builder() .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION) - .setFlags(AudioAttributes.FLAG_AUDIBILITY_ENFORCED) .build(); mInCallNotificationVolume = resources.getFloat(R.dimen.config_inCallNotificationVolume); -- cgit v1.2.3-59-g8ed1b