整理資源名稱

This commit is contained in:
Raymond Yang 2023-04-12 10:33:08 +08:00
parent 27995305a4
commit c9e2d8717c
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class IOSClockWidget : AppWidgetProvider() {
when (intent?.action) {
ClockUpdateService.SECOND_CHANGED -> {
for (appWidgetId in appWidgetIds) {
updateAppWidget(context, appWidgetManager, appWidgetId)
updateClockWidget(context, appWidgetManager, appWidgetId)
}
}
}
@ -40,7 +40,7 @@ class IOSClockWidget : AppWidgetProvider() {
) {
// There may be multiple widgets active, so update all of them
for (appWidgetId in appWidgetIds) {
updateAppWidget(context, appWidgetManager, appWidgetId)
updateClockWidget(context, appWidgetManager, appWidgetId)
}
}
@ -53,7 +53,7 @@ class IOSClockWidget : AppWidgetProvider() {
}
}
internal fun updateAppWidget(
internal fun updateClockWidget(
context: Context,
appWidgetManager: AppWidgetManager,
appWidgetId: Int

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -5,7 +5,7 @@
android:initialLayout="@layout/i_o_s_clock_widget"
android:minWidth="40dp"
android:minHeight="40dp"
android:previewImage="@drawable/example_appwidget_preview"
android:previewImage="@drawable/ios_clock_widget_preview"
android:previewLayout="@layout/i_o_s_clock_widget"
android:resizeMode="none"
android:targetCellWidth="1"