Note widget: add dismiss action

This commit is contained in:
MM20
2023-04-27 18:45:52 +02:00
parent 9f675da337
commit 5211f5bced
7 changed files with 119 additions and 23 deletions
@@ -80,6 +80,12 @@ class WidgetsService(
}
}
fun countWidgets(type: String) = widgetRepository.count(type)
fun removeWidget(widget: Widget) {
widgetRepository.delete(widget)
}
companion object {
const val AppWidgetHostId = 44203
}