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 11 months ago
parent 9945e4bf09
commit 3096f859ac

@ -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