Compare commits
5 commits
5e8d51db9f
...
d8d49e03a0
Author | SHA1 | Date | |
---|---|---|---|
Peter Cai | d8d49e03a0 | ||
Peter Cai | 6ca2ffd6ea | ||
Peter Cai | 788818fdda | ||
Peter Cai | b218b57c94 | ||
e02dee8c01 |
|
@ -274,6 +274,13 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
||||||
rtpConnection.get().acceptCall();
|
rtpConnection.get().acceptCall();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onReject() {
|
||||||
|
this.rtpConnection = xmppConnectionService.getJingleConnectionManager().findJingleRtpConnection(account, with, sessionId);
|
||||||
|
rtpConnection.get().rejectCall();
|
||||||
|
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisconnect() {
|
public void onDisconnect() {
|
||||||
if (rtpConnection == null || rtpConnection.get() == null) {
|
if (rtpConnection == null || rtpConnection.get() == null) {
|
||||||
|
|
|
@ -276,7 +276,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
|
||||||
if (type != null && (type.equals("pstn") || type.equals("sms"))) {
|
if (type != null && (type.equals("pstn") || type.equals("sms"))) {
|
||||||
try {
|
try {
|
||||||
binding.jid.setText(PhoneNumberUtilWrapper.normalize(getActivity(), binding.jid.getText().toString()));
|
binding.jid.setText(PhoneNumberUtilWrapper.normalize(getActivity(), binding.jid.getText().toString()));
|
||||||
} catch (NumberParseException | NullPointerException e) { }
|
} catch (NumberParseException | IllegalArgumentException | NullPointerException e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p == null) {
|
if (p == null) {
|
||||||
|
|
Loading…
Reference in a new issue