Fix leaked receiver when call does not connect.

This commit is contained in:
Cody Henthorne
2021-04-24 14:34:16 -04:00
parent 5ca4db6ea5
commit 5100341e60

View File

@@ -138,6 +138,7 @@ public final class WebRtcCallService extends Service implements BluetoothStateMa
}
unregisterNetworkReceiver();
unregisterPowerButtonReceiver();
TelephonyUtil.getManager(this)
.listen(hangUpRtcOnDeviceCallAnswered, PhoneStateListener.LISTEN_NONE);