removing the redundant widget_date_time.xml

This commit is contained in:
tibbi
2022-05-20 00:09:13 +02:00
parent 347260dfee
commit 271442514a
3 changed files with 4 additions and 100 deletions

View File

@ -27,7 +27,7 @@ class MyDigitalTimeWidgetProvider : AppWidgetProvider() {
private fun performUpdate(context: Context) {
val appWidgetManager = AppWidgetManager.getInstance(context) ?: return
appWidgetManager.getAppWidgetIds(getComponentName(context)).forEach {
RemoteViews(context.packageName, R.layout.widget_date_time).apply {
RemoteViews(context.packageName, R.layout.widget_digital).apply {
updateTexts(context, this)
updateColors(context, this)
setupAppOpenIntent(context, this)