mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
LG8n: app: MtkInCallService: Adjust gain values in all situations
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com> Signed-off-by: fjrXTR <fajarslebew31@gmail.com> Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com> Signed-off-by: fjrXTR <fajarslebew31@gmail.com> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
664ce73570
commit
df9b347312
|
@ -22,10 +22,6 @@ public class VolumeChangeReceiver extends BroadcastReceiver {
|
|||
private void handleVolumeStateChange(Intent intent) {
|
||||
if (intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1) == AudioManager.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;
|
||||
}
|
||||
|
||||
// Try to get volumeIndex
|
||||
int volumeIndex = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, -1);
|
||||
|
|
Loading…
Reference in a new issue