整理資源名稱
This commit is contained in:
parent
27995305a4
commit
c9e2d8717c
@ -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 |
BIN
app/src/main/res/drawable-nodpi/ios_clock_widget_preview.png
Normal file
BIN
app/src/main/res/drawable-nodpi/ios_clock_widget_preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user