fix compose notification action not recreating MainActivity (#4249)
closes #4247
This commit is contained in:
parent
7d3aafdd65
commit
fa8bede7d6
1 changed files with 2 additions and 1 deletions
|
@ -456,7 +456,8 @@ public class NotificationHelper {
|
||||||
|
|
||||||
Intent composeIntent = MainActivity.composeIntent(context, composeOptions, account.getId(), body.getId(), (int)account.getId());
|
Intent composeIntent = MainActivity.composeIntent(context, composeOptions, account.getId(), body.getId(), (int)account.getId());
|
||||||
|
|
||||||
composeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
// make sure a new instance of MainActivity is started and old ones get destroyed
|
||||||
|
composeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||||
|
|
||||||
return PendingIntent.getActivity(context.getApplicationContext(),
|
return PendingIntent.getActivity(context.getApplicationContext(),
|
||||||
notificationId,
|
notificationId,
|
||||||
|
|
Loading…
Reference in a new issue