mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +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) {
|
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;
|
String hash = "#offer=" + payload;
|
||||||
Intent intent = new Intent(context, VideochatActivity.class);
|
Intent intent = new Intent(context, VideochatActivity.class);
|
||||||
intent.setAction(Intent.ACTION_VIEW);
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
|
@ -170,8 +175,9 @@ public class NotificationCenter {
|
||||||
intent.putExtra(VideochatActivity.EXTRA_HASH, hash);
|
intent.putExtra(VideochatActivity.EXTRA_HASH, hash);
|
||||||
intent.setPackage(context.getPackageName());
|
intent.setPackage(context.getPackageName());
|
||||||
return TaskStackBuilder.create(context)
|
return TaskStackBuilder.create(context)
|
||||||
.addNextIntentWithParentStack(intent)
|
.addNextIntentWithParentStack(chatIntent)
|
||||||
.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | IntentUtils.FLAG_MUTABLE());
|
.addNextIntent(intent)
|
||||||
|
.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | IntentUtils.FLAG_MUTABLE());
|
||||||
}
|
}
|
||||||
|
|
||||||
private PendingIntent getDeclineCallIntent(ChatData chatData, int callId) {
|
private PendingIntent getDeclineCallIntent(ChatData chatData, int callId) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue