Skip to content

Commit

Permalink
fix hungup button bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xionxiao committed Aug 13, 2018
1 parent 9281191 commit 63a7b0a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,15 @@ private void setButtonsEnable(boolean enable) {

@OnClick(R.id.buttonHangup)
public void onHangup() {
/*
if (isConnected) {
agent.hangup();
} else {
((LauncherActivity) getActivity()).goBackStack();
}
*/
agent.hangup();
((LauncherActivity) getActivity()).goBackStack();
}

@OnClick(R.id.buttonDTMF)
Expand Down

0 comments on commit 63a7b0a

Please sign in to comment.