Skip to content
Snippets Groups Projects
Commit 8046afa6 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Fix widget configure button not opening the right widget

parent 8d9a2bb5
No related branches found
No related tags found
1 merge request!1363New widgets
......@@ -185,6 +185,8 @@ class MiniPlayerAppWidgetProvider : AppWidgetProvider() {
val iConfigure = Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE).apply {
component = ComponentName(context, MiniPlayerConfigureActivity::class.java)
putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId)
//we have to add a data to this intent to differentiate intents from different widget instances
data = Uri.parse("vlc://mini_widget/$appWidgetId")
}
val piBackward = context.getPendingIntent(iBackward)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment