Merge "Incorporating property setting for the minimum volume limit for Assistant." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a7ba7d7fbe
@@ -1145,6 +1145,11 @@ public class AudioService extends IAudioService.Stub
|
|||||||
MAX_STREAM_VOLUME[AudioSystem.STREAM_SYSTEM];
|
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
|
// Read following properties to configure max volume (number of steps) and default volume
|
||||||
// for STREAM_NOTIFICATION and STREAM_RING:
|
// for STREAM_NOTIFICATION and STREAM_RING:
|
||||||
// config_audio_notif_vol_default
|
// config_audio_notif_vol_default
|
||||||
|
|||||||
Reference in New Issue
Block a user