Skip to content

Commit 57c30dd

Browse files
authored
Instrumentation updates for Widgets. (#4437)
1 parent 4f0e46b commit 57c30dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/main/java/org/wikipedia/widgets/WidgetProviderFeaturedPage.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ class WidgetProviderFeaturedPage : AppWidgetProvider() {
4949
appWidgetManager.updateAppWidget(widgetId, remoteViews)
5050

5151
val intent = Intent(context, PageActivity::class.java)
52-
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
53-
intent.putExtra(Constants.ARG_TITLE, pageTitle)
54-
intent.putExtra(Constants.INTENT_FEATURED_ARTICLE_FROM_WIDGET, true)
52+
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
53+
.putExtra(Constants.ARG_TITLE, pageTitle)
54+
.putExtra(Constants.INTENT_EXTRA_INVOKE_SOURCE, Constants.InvokeSource.WIDGET)
55+
.putExtra(Constants.INTENT_FEATURED_ARTICLE_FROM_WIDGET, true)
5556
val pendingIntent = PendingIntentCompat.getActivity(context, 1, intent,
5657
PendingIntent.FLAG_UPDATE_CURRENT, false)
5758

0 commit comments

Comments
 (0)