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() {
|
||||
checkMicrophoneAvailability();
|
||||
requireRtpConnection().acceptCall();
|
||||
try {
|
||||
requireRtpConnection().acceptCall();
|
||||
} catch (final IllegalStateException e) {
|
||||
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
|
||||
private void checkMicrophoneAvailability() {
|
||||
|
|
Loading…
Reference in New Issue