make notifications open notification tab again
This commit is contained in:
parent
27b4cf8739
commit
e58fabbcc0
1 changed files with 3 additions and 4 deletions
|
@ -243,11 +243,10 @@ public class NotificationHelper {
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
// we have to switch account here
|
// we have to switch account here
|
||||||
Intent eventResultIntent = new Intent(context, ViewThreadActivity.class);
|
Intent eventResultIntent = new Intent(context, MainActivity.class);
|
||||||
eventResultIntent.putExtra("account", account.getId());
|
eventResultIntent.putExtra(ACCOUNT_ID, account.getId());
|
||||||
eventResultIntent.putExtra("id", body.getStatus().getId());
|
|
||||||
TaskStackBuilder eventStackBuilder = TaskStackBuilder.create(context);
|
TaskStackBuilder eventStackBuilder = TaskStackBuilder.create(context);
|
||||||
eventStackBuilder.addParentStack(ViewThreadActivity.class);
|
eventStackBuilder.addParentStack(MainActivity.class);
|
||||||
eventStackBuilder.addNextIntent(eventResultIntent);
|
eventStackBuilder.addNextIntent(eventResultIntent);
|
||||||
|
|
||||||
PendingIntent eventResultPendingIntent = eventStackBuilder.getPendingIntent((int) account.getId(),
|
PendingIntent eventResultPendingIntent = eventStackBuilder.getPendingIntent((int) account.getId(),
|
||||||
|
|
Loading…
Reference in a new issue