From 31c627135c4c74ede71c1bd180eb886993046c46 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 21 Apr 2022 21:23:14 -0400 Subject: [PATCH] Use StatusHint label to signal connecting state --- .../java/com/cheogram/android/ConnectionService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cheogram/java/com/cheogram/android/ConnectionService.java b/src/cheogram/java/com/cheogram/android/ConnectionService.java index 8a68aadd2..71d619aeb 100644 --- a/src/cheogram/java/com/cheogram/android/ConnectionService.java +++ b/src/cheogram/java/com/cheogram/android/ConnectionService.java @@ -235,7 +235,7 @@ public class ConnectionService extends android.telecom.ConnectionService { findRtpConnection(); } - setStatusHints(new StatusHints(null, gatewayIcon, null)); + String statusLabel = null; if (state == RtpEndUserState.FINDING_DEVICE) { setInitialized(); @@ -246,6 +246,7 @@ public class ConnectionService extends android.telecom.ConnectionService { } else if (state == RtpEndUserState.CONNECTING) { xmppConnectionService.setDiallerIntegrationActive(true); setActive(); + statusLabel = getString(R.string.rtp_state_connecting); } else if (state == RtpEndUserState.CONNECTED) { postDial(); } else if (state == RtpEndUserState.DECLINED_OR_BUSY) { @@ -257,6 +258,8 @@ public class ConnectionService extends android.telecom.ConnectionService { } else if (RtpSessionActivity.END_CARD.contains(state)) { close(new DisconnectCause(DisconnectCause.ERROR)); } + + setStatusHints(new StatusHints(statusLabel, gatewayIcon, null)); } @Override