catch IllegalStateException around acceptCall()
this can happen when the UI races a call retrection
This commit is contained in:
parent
c159bbfc81
commit
fb57ef47bc
|
@ -147,7 +147,11 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
|
||||||
|
|
||||||
private void checkRecorderAndAcceptCall() {
|
private void checkRecorderAndAcceptCall() {
|
||||||
checkMicrophoneAvailability();
|
checkMicrophoneAvailability();
|
||||||
|
try {
|
||||||
requireRtpConnection().acceptCall();
|
requireRtpConnection().acceptCall();
|
||||||
|
} catch (final IllegalStateException e) {
|
||||||
|
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkMicrophoneAvailability() {
|
private void checkMicrophoneAvailability() {
|
||||||
|
|
Loading…
Reference in a new issue