Browse Source

Call setActive anyway in CONNECTED state

There is no code that guarantees the state must go through CONNECTING
before being CONNECTED. To avoid potential bugs, call setActive anyway
here.
peter-dev
Peter Cai 4 months ago
parent
commit
3096f859ac
  1. 2
      src/cheogram/java/com/cheogram/android/ConnectionService.java

2
src/cheogram/java/com/cheogram/android/ConnectionService.java

@ -251,6 +251,8 @@ public class ConnectionService extends android.telecom.ConnectionService {
setActive();
statusLabel = getString(R.string.rtp_state_connecting);
} else if (state == RtpEndUserState.CONNECTED) {
xmppConnectionService.setDiallerIntegrationActive(true);
setActive();
postDial();
} else if (state == RtpEndUserState.DECLINED_OR_BUSY) {
close(new DisconnectCause(DisconnectCause.BUSY));

Loading…
Cancel
Save