Note widget: add dismiss action
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user