Fix dialer hang button sometimes doesn't hang calls.
This commit is contained in:
parent
01674c3b1a
commit
7f2efdb451
1 changed files with 8 additions and 7 deletions
|
@ -136,18 +136,19 @@ public class DialerActivity extends Activity implements LinphoneGuiListener, Lin
|
|||
mInCallAddressLayout = findViewById(R.id.IncallAddressLayout);
|
||||
mInCallAddressLayout.setVisibility(View.GONE);
|
||||
|
||||
if (useConferenceActivity) {
|
||||
mHangup = findViewById(R.id.HangUp);
|
||||
((HangCallButton)mHangup).setTerminateAllCalls(true);
|
||||
} else if (useIncallActivity) {
|
||||
mHangup = findViewById(R.id.HangUp);
|
||||
HangCallButton hang = (HangCallButton) findViewById(R.id.HangUp);
|
||||
HangCallButton decline = (HangCallButton) findViewById(R.id.Decline);
|
||||
hang.setTerminateAllCalls(true);
|
||||
decline.setTerminateAllCalls(true);
|
||||
|
||||
if (useConferenceActivity || useIncallActivity) {
|
||||
mHangup = hang;
|
||||
} else {
|
||||
mMute = (MuteMicButton) findViewById(R.id.mic_mute_button);
|
||||
mSpeaker = (SpeakerButton) findViewById(R.id.speaker_button);
|
||||
mHangup = findViewById(R.id.Decline);
|
||||
mHangup = decline;
|
||||
}
|
||||
|
||||
|
||||
mStatus = (TextView) findViewById(R.id.status_label);
|
||||
|
||||
AddressAware numpad = (AddressAware) findViewById(R.id.Dialer);
|
||||
|
|
Loading…
Reference in a new issue