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:
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…
Reference in New Issue