mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 18:07:31 +00:00
rosemary: app: MtkInCallService: Adjust gain values in all situations
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
This commit is contained in:
committed by
Matsvei Niaverau
parent
4c6dc4806a
commit
510e3cda72
@@ -24,10 +24,6 @@ public class VolumeChangeReceiver extends BroadcastReceiver {
|
||||
int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1);
|
||||
if (streamType == AudioSystem.STREAM_VOICE_CALL) {
|
||||
AudioDeviceInfo callDevice = mAudioManager.getCommunicationDevice();
|
||||
if (callDevice.getInternalType() != AudioDeviceInfo.TYPE_BUILTIN_EARPIECE) {
|
||||
// Device is not the built in earpiece, we don't need to do anything.
|
||||
return;
|
||||
}
|
||||
|
||||
// Start building parameters
|
||||
String parameters = "volumeDevice=" + (callDevice.getId() - 1) + ";";
|
||||
|
||||
Reference in New Issue
Block a user