fix return to call
This commit is contained in:
parent
55fd7157c8
commit
5cca842e66
|
@ -1560,17 +1560,18 @@ public class ConversationFragment extends XmppFragment
|
||||||
RtpSessionActivity.EXTRA_ACCOUNT,
|
RtpSessionActivity.EXTRA_ACCOUNT,
|
||||||
id.getAccount().getJid().asBareJid().toEscapedString());
|
id.getAccount().getJid().asBareJid().toEscapedString());
|
||||||
intent.putExtra(RtpSessionActivity.EXTRA_WITH, id.getWith().toEscapedString());
|
intent.putExtra(RtpSessionActivity.EXTRA_WITH, id.getWith().toEscapedString());
|
||||||
if (id instanceof AbstractJingleConnection.Id) {
|
if (id instanceof AbstractJingleConnection) {
|
||||||
intent.setAction(Intent.ACTION_VIEW);
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
intent.putExtra(RtpSessionActivity.EXTRA_SESSION_ID, id.getSessionId());
|
intent.putExtra(RtpSessionActivity.EXTRA_SESSION_ID, id.getSessionId());
|
||||||
} else if (id instanceof JingleConnectionManager.RtpSessionProposal) {
|
startActivity(intent);
|
||||||
if (((JingleConnectionManager.RtpSessionProposal) id).media.contains(Media.VIDEO)) {
|
} else if (id instanceof JingleConnectionManager.RtpSessionProposal proposal) {
|
||||||
|
if (proposal.media.contains(Media.VIDEO)) {
|
||||||
intent.setAction(RtpSessionActivity.ACTION_MAKE_VIDEO_CALL);
|
intent.setAction(RtpSessionActivity.ACTION_MAKE_VIDEO_CALL);
|
||||||
} else {
|
} else {
|
||||||
intent.setAction(RtpSessionActivity.ACTION_MAKE_VOICE_CALL);
|
intent.setAction(RtpSessionActivity.ACTION_MAKE_VOICE_CALL);
|
||||||
}
|
}
|
||||||
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
startActivity(intent);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue