Browse Source

make notifications open notification tab again

pull/640/head
Conny Duck 8 years ago
parent
commit
e58fabbcc0
  1. 7
      app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java

7
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(),

Loading…
Cancel
Save