mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
go back to chat after finishing call
This commit is contained in:
parent
0e91537a4d
commit
7a11234431
1 changed files with 8 additions and 2 deletions
|
@ -161,6 +161,11 @@ public class NotificationCenter {
|
|||
}
|
||||
|
||||
private PendingIntent getAnswerIntent(ChatData chatData, int callId, String payload) {
|
||||
final Intent chatIntent = new Intent(context, ConversationActivity.class)
|
||||
.putExtra(ConversationActivity.ACCOUNT_ID_EXTRA, chatData.accountId)
|
||||
.putExtra(ConversationActivity.CHAT_ID_EXTRA, chatData.chatId)
|
||||
.setAction(Intent.ACTION_VIEW);
|
||||
|
||||
String hash = "#offer=" + payload;
|
||||
Intent intent = new Intent(context, VideochatActivity.class);
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
|
@ -170,8 +175,9 @@ public class NotificationCenter {
|
|||
intent.putExtra(VideochatActivity.EXTRA_HASH, hash);
|
||||
intent.setPackage(context.getPackageName());
|
||||
return TaskStackBuilder.create(context)
|
||||
.addNextIntentWithParentStack(intent)
|
||||
.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | IntentUtils.FLAG_MUTABLE());
|
||||
.addNextIntentWithParentStack(chatIntent)
|
||||
.addNextIntent(intent)
|
||||
.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | IntentUtils.FLAG_MUTABLE());
|
||||
}
|
||||
|
||||
private PendingIntent getDeclineCallIntent(ChatData chatData, int callId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue