kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix crash when handling expired call offers.
rodzic
7a449a971f
commit
8a9605ade8
|
@ -681,6 +681,7 @@ public abstract class WebRtcActionProcessor {
|
||||||
|
|
||||||
ApplicationDependencies.getAppForegroundObserver().removeListener(webRtcInteractor.getForegroundListener());
|
ApplicationDependencies.getAppForegroundObserver().removeListener(webRtcInteractor.getForegroundListener());
|
||||||
|
|
||||||
|
if (activePeer.getState() != CallState.IDLE) {
|
||||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.PROCESSING);
|
webRtcInteractor.updatePhoneState(LockManager.PhoneState.PROCESSING);
|
||||||
boolean playDisconnectSound = (activePeer.getState() == CallState.DIALING) ||
|
boolean playDisconnectSound = (activePeer.getState() == CallState.DIALING) ||
|
||||||
(activePeer.getState() == CallState.REMOTE_RINGING) ||
|
(activePeer.getState() == CallState.REMOTE_RINGING) ||
|
||||||
|
@ -691,6 +692,7 @@ public abstract class WebRtcActionProcessor {
|
||||||
webRtcInteractor.terminateCall(activePeer.getId());
|
webRtcInteractor.terminateCall(activePeer.getId());
|
||||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.IDLE);
|
webRtcInteractor.updatePhoneState(LockManager.PhoneState.IDLE);
|
||||||
webRtcInteractor.stopForegroundService();
|
webRtcInteractor.stopForegroundService();
|
||||||
|
}
|
||||||
|
|
||||||
return WebRtcVideoUtil.deinitializeVideo(currentState)
|
return WebRtcVideoUtil.deinitializeVideo(currentState)
|
||||||
.builder()
|
.builder()
|
||||||
|
|
Ładowanie…
Reference in New Issue