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.
This commit is contained in:
Peter Cai 2022-04-21 21:28:38 -04:00
parent 9945e4bf09
commit 3096f859ac
1 changed files with 2 additions and 0 deletions

View File

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