From e58fabbcc03a3e9dc586f139ed556e18c86efe3d Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 8 May 2018 20:58:06 +0200 Subject: [PATCH] make notifications open notification tab again --- .../com/keylesspalace/tusky/util/NotificationHelper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java b/app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java index 43623e6b6..295cf8eaf 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java @@ -243,11 +243,10 @@ public class NotificationHelper { PendingIntent.FLAG_UPDATE_CURRENT); // we have to switch account here - Intent eventResultIntent = new Intent(context, ViewThreadActivity.class); - eventResultIntent.putExtra("account", account.getId()); - eventResultIntent.putExtra("id", body.getStatus().getId()); + Intent eventResultIntent = new Intent(context, MainActivity.class); + eventResultIntent.putExtra(ACCOUNT_ID, account.getId()); TaskStackBuilder eventStackBuilder = TaskStackBuilder.create(context); - eventStackBuilder.addParentStack(ViewThreadActivity.class); + eventStackBuilder.addParentStack(MainActivity.class); eventStackBuilder.addNextIntent(eventResultIntent); PendingIntent eventResultPendingIntent = eventStackBuilder.getPendingIntent((int) account.getId(),