Skip to content

Commit 469dafa

Browse files
committed
fix: widget app updated event
1 parent cdd7ffa commit 469dafa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/commands/widget.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,11 @@ export class WidgetAndroidCommand extends WidgetCommand {
11871187
android:resizeMode="${resizeMode}"
11881188
android:updatePeriodMillis="0"
11891189
android:widgetCategory="home_screen"
1190-
${enableWidgetFeatures ? ' android:widgetFeatures="reconfigurable|configuration_optional"' : ""} />${EOL}`;
1190+
${enableWidgetFeatures ? 'android:widgetFeatures="reconfigurable|configuration_optional"' : ""}>
1191+
<meta-data
1192+
android:name="org.nativescript.widgets.MANAGED_WIDGET"
1193+
android:value="true"/>
1194+
</appwidget-provider>${EOL}`;
11911195

11921196
fs.writeFileSync(widgetInfoPath, content);
11931197
}
@@ -1264,9 +1268,6 @@ ${EOL}`;
12641268
<intent-filter>
12651269
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
12661270
</intent-filter>
1267-
<intent-filter>
1268-
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
1269-
</intent-filter>
12701271
<meta-data
12711272
android:name="android.appwidget.provider"
12721273
android:resource="@xml/ns_${name}_widget_info" />

0 commit comments

Comments
 (0)