Call setActive anyway in CONNECTED state
Peter Cai
created
There is no code that guarantees the state must go through CONNECTING
before being CONNECTED. To avoid potential bugs, call setActive anyway
here.
Change summary
src/cheogram/java/com/cheogram/android/ConnectionService.java | 2 ++
1 file changed, 2 insertions(+)
Detailed changes
@@ -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));