mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-03 07:37:35 +01:00
make sure the proper note gets opened at a widget click
This commit is contained in:
parent
890fc948b9
commit
ce7485fa85
@ -40,7 +40,7 @@ class MyWidgetProvider : AppWidgetProvider() {
|
||||
}
|
||||
|
||||
val startActivityIntent = context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)
|
||||
startActivityIntent.putExtra(OPEN_NOTE_ID, widgetId)
|
||||
startActivityIntent.putExtra(OPEN_NOTE_ID, noteId)
|
||||
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