renaming the digital clock related widget file

This commit is contained in:
tibbi 2022-04-21 22:00:12 +02:00
parent 80de1c3a79
commit 55b23a2ff3
3 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_date_time_info" />
android:resource="@xml/widget_digital_clock_info" />
</receiver>
<receiver

View File

@ -180,7 +180,7 @@ fun Context.updateWidgets() {
val component = ComponentName(applicationContext, MyWidgetDateTimeProvider::class.java)
val widgetIds = AppWidgetManager.getInstance(applicationContext)?.getAppWidgetIds(component) ?: return
if (widgetIds.isNotEmpty()) {
val ids = intArrayOf(R.xml.widget_date_time_info)
val ids = intArrayOf(R.xml.widget_digital_clock_info)
Intent(applicationContext, MyWidgetDateTimeProvider::class.java).apply {
action = AppWidgetManager.ACTION_APPWIDGET_UPDATE
putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids)