Force each stacked notification to have a different requestCode.
This ensures that the `PendingIntent.FLAG_UPDATE_CURRENT` doesn't continually override earlier intents with the last app to be notified. This could probably equally be done by leaving the request code as 0 and removing the FLAG_UPDATE_CURRENT out, however it seems much more semantic to have a separate request code for each different pending intent. Fixes #1021.
This commit is contained in:
parent
6002a97a03
commit
e965e97623
@ -410,7 +410,7 @@ public final class AppUpdateStatusManager {
|
||||
return TaskStackBuilder.create(context)
|
||||
.addParentStack(AppDetails2.class)
|
||||
.addNextIntent(notifyIntent)
|
||||
.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
.getPendingIntent(apk.packageName.hashCode(), PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
}
|
||||
|
||||
private PendingIntent getAppErrorIntent(AppUpdateStatus entry) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user