From c56f35334d31836a4b217e49c59a9edccb7ada77 Mon Sep 17 00:00:00 2001 From: zhanglihow Date: Mon, 11 Nov 2019 02:15:42 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=B8=80=E5=AF=B9=E4=B8=80=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E8=81=8A=E5=A4=A9=EF=BC=8C=E6=8E=A5=E9=80=9A=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../starrtc/demo/demo/voip/VoipAudioActivity.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/demo/app/src/main/java/com/starrtc/demo/demo/voip/VoipAudioActivity.java b/demo/app/src/main/java/com/starrtc/demo/demo/voip/VoipAudioActivity.java index 4e10802..cf16310 100644 --- a/demo/app/src/main/java/com/starrtc/demo/demo/voip/VoipAudioActivity.java +++ b/demo/app/src/main/java/com/starrtc/demo/demo/voip/VoipAudioActivity.java @@ -110,9 +110,9 @@ public void failed(String errMsg) { stopAndFinish(); } }); - if(action.equals(CALLING)){ - showCallingView(); - } +// if(action.equals(CALLING)){ +// showCallingView(); +// } } public void addListener(){ @@ -189,7 +189,7 @@ public void failed(final String errMsg) { } }); } - } + } ).show(); } @@ -229,9 +229,13 @@ private void showCallingView(){ findViewById(R.id.timer).setVisibility(View.INVISIBLE); } - private void showTalkingView(){ + private void hideTalkingView(){ findViewById(R.id.calling_txt).setVisibility(View.INVISIBLE); findViewById(R.id.timer).setVisibility(View.VISIBLE); + } + + private void showTalkingView(){ + hideTalkingView(); timer.setBase(SystemClock.elapsedRealtime()); timer.start(); setupView();