Skip to content

Commit edc6c04

Browse files
feat(widget): add adaptive card & circular desktop widgets
1 parent eccb0a4 commit edc6c04

21 files changed

Lines changed: 1441 additions & 0 deletions

app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,20 @@
276276
android:resource="@xml/lyric_widget" />
277277
</receiver>
278278

279+
<receiver android:name=".ui.CardWidgetProvider"
280+
android:exported="false">
281+
<intent-filter>
282+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
283+
<action android:name="org.akanework.gramophone.ACTION_CARD_WIDGET_PREVIOUS" />
284+
<action android:name="org.akanework.gramophone.ACTION_CARD_WIDGET_PLAY_PAUSE" />
285+
<action android:name="org.akanework.gramophone.ACTION_CARD_WIDGET_NEXT" />
286+
<action android:name="org.akanework.gramophone.ACTION_CARD_WIDGET_SHUFFLE" />
287+
<action android:name="org.akanework.gramophone.ACTION_CARD_WIDGET_FAVORITE" />
288+
</intent-filter>
289+
<meta-data android:name="android.appwidget.provider"
290+
android:resource="@xml/card_widget" />
291+
</receiver>
292+
279293
<service android:name=".ui.LyricWidgetService"
280294
android:permission="android.permission.BIND_REMOTEVIEWS" />
281295

0 commit comments

Comments
 (0)