rosemary: app: MtkInCallService: Adjust gain values in all situations

Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
This commit is contained in:
LinkBoi00
2022-08-01 01:13:08 +03:00
committed by Matsvei Niaverau
parent 4c6dc4806a
commit 510e3cda72

View File

@@ -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) + ";";