InCallService: Do not restore gain levels on service start

* This harms devices with an ultrasonic proximity sensor

Change-Id: I3bc16a08db20cf8ec66734207413818a15ad0f65
This commit is contained in:
Matsvei Niaverau
2023-11-24 09:48:59 +01:00
committed by bengris32
parent 252611c2ee
commit f4a2449ae5

View File

@@ -52,9 +52,6 @@ public class VolumeChangeService extends Service {
telephonyManager.registerTelephonyCallback(getMainExecutor(), mCallStateListener);
// Restore gain levels on service start.
GainUtils.setGainLevel(audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL));
return START_STICKY;
}
}