diff options
| author | 2017-09-28 04:47:58 +0000 | |
|---|---|---|
| committer | 2017-09-28 04:47:58 +0000 | |
| commit | 1bf7f58ef3cb7333623a1573414d55c75b9997b7 (patch) | |
| tree | cf6ead7dcdb904d9f07df39df084a9b0b56b75d4 | |
| parent | d6649cf960401952d07b179c4d56edaf8ff13099 (diff) | |
| parent | 20464662b848ad7aa8779aef1cec6c4fb2eaa980 (diff) | |
Merge "In-call-notif doesn't use AUDIBILITY_ENFORCED flag" into oc-mr1-dev am: 1986261870
am: 20464662b8
Change-Id: Ie1331a3e712bfed768419a563bb3ccec4cf557fb
| -rw-r--r-- | core/res/res/values/config.xml | 2 | ||||
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index cd8f6eaaaa0a..6bf5c63cea92 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3040,7 +3040,7 @@ <bool name="config_handleVolumeKeysInWindowManager">false</bool> <!-- Volume level of in-call notification tone playback [0..1] --> - <item name="config_inCallNotificationVolume" format="float" type="dimen">.25</item> + <item name="config_inCallNotificationVolume" format="float" type="dimen">.10</item> <!-- URI for in call notification sound --> <string translatable="false" name="config_inCallNotificationSound">/system/media/audio/ui/InCallNotification.ogg</string> diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 1f0c14517e62..610717431f80 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); |