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