mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-12 14:40:07 +01:00
send the note ID at clicking widget background too
This commit is contained in:
parent
a5ff23fdb3
commit
67a3a5e811
@ -34,6 +34,7 @@ class MyWidgetProvider : AppWidgetProvider() {
|
||||
|
||||
val widgetId = context.config.widgetNoteId
|
||||
val startActivityIntent = context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)
|
||||
startActivityIntent.putExtra(OPEN_NOTE_ID, widgetId)
|
||||
val startActivityPendingIntent = PendingIntent.getActivity(context, widgetId, startActivityIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
views.setPendingIntentTemplate(R.id.notes_widget_listview, startActivityPendingIntent)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user