mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2024-12-16 18:29:26 +01:00
renaming the digital clock related widget file
This commit is contained in:
parent
80de1c3a79
commit
55b23a2ff3
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user