Incorporating property setting for the minimum volume limit for Assistant.
To allow setting a desired minimum volume for Assistant if needed. Bug: 277829235 Test: manual Change-Id: I8120f25bffc4cb7b5b9c1b353a6d9f4f6ca251f2
This commit is contained in:
@@ -1157,6 +1157,11 @@ public class AudioService extends IAudioService.Stub
|
||||
MAX_STREAM_VOLUME[AudioSystem.STREAM_SYSTEM];
|
||||
}
|
||||
|
||||
int minAssistantVolume = SystemProperties.getInt("ro.config.assistant_vol_min", -1);
|
||||
if (minAssistantVolume != -1) {
|
||||
MIN_STREAM_VOLUME[AudioSystem.STREAM_ASSISTANT] = minAssistantVolume;
|
||||
}
|
||||
|
||||
// Read following properties to configure max volume (number of steps) and default volume
|
||||
// for STREAM_NOTIFICATION and STREAM_RING:
|
||||
// config_audio_notif_vol_default
|
||||
|
||||
Reference in New Issue
Block a user