Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9377485e authored by Daniel Bailey's avatar Daniel Bailey Committed by Niedermann IT-Dienstleistungen
Browse files

Add appWidgetId to PendingIntent's request code



Ensures uniqueness with multiple widgets.

Signed-off-by: default avatarDaniel Bailey <daniel.bailey@grappleIT.co.uk>
parent b328fb1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public class NoteListWidget extends AppWidgetProvider {
                    PendingIntent.FLAG_UPDATE_CURRENT);

            // Launch create note activity if user taps "+" icon on header
            PendingIntent newNoteI = PendingIntent.getActivity(context, PENDING_INTENT_NEW_NOTE_RQ,
            PendingIntent newNoteI = PendingIntent.getActivity(context, (PENDING_INTENT_NEW_NOTE_RQ + appWidgetId),
                    new Intent(context, EditNoteActivity.class).putExtra(PARAM_CATEGORY, new Category(category, displayMode == NLW_DISPLAY_STARRED)),
                    PendingIntent.FLAG_UPDATE_CURRENT);