Browse Source

fix notifications opening the wrong account (#1408)

pull/1416/head
Konrad Pozniak 7 years ago committed by GitHub
parent
commit
51da2a15e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java

2
app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java

@ -268,7 +268,7 @@ public class NotificationHelper {
summaryStackBuilder.addParentStack(MainActivity.class);
summaryStackBuilder.addNextIntent(summaryResultIntent);
PendingIntent summaryResultPendingIntent = summaryStackBuilder.getPendingIntent(notificationId,
PendingIntent summaryResultPendingIntent = summaryStackBuilder.getPendingIntent((int) (notificationId + account.getId() * 10000),
PendingIntent.FLAG_UPDATE_CURRENT);
// we have to switch account here

Loading…
Cancel
Save