fix compose notification action not recreating MainActivity (#4249)

closes #4247
This commit is contained in:
Konrad Pozniak 2024-02-23 10:27:07 +01:00 committed by GitHub
parent 7d3aafdd65
commit fa8bede7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -456,7 +456,8 @@ public class NotificationHelper {
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(),
notificationId,