Surround recording stops when making a phone call or sending a voice message

On Android 10 and below, if a phone call comes in or if the user tries to use the microphone, the ongoing recording will be stopped. This is because, due to Android’s limitations, only one app can use the microphone at a time. We need to release the microphone and stop recording to allow the user to make a call or send a voice message.