rename current_and_hourly_widget_info to weather_widget_info, add API 31 widget configuration, and add startNow to WeatherUpdateScheduler

This commit is contained in:
PranshulGG committed 2026-05-26 11:46:06 +05:30
1 parent c94b7f3f1b
commit ff026b8926
3 files changed
+22 -5

No files matched your search

@@ -39,4 +39,8 @@ object WeatherUpdateScheduler {
WorkManager.getInstance(context)
.cancelUniqueWork("@pranshulgg_weather_master_updates")
}
fun startNow(context: Context, skipForegroundCheck: Boolean = false) {
WeatherWorker.startNow(context, skipForegroundCheck)
}
}
@@ -0,0 +1,13 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:maxResizeWidth="600dp"
android:maxResizeHeight="300dp"
android:minWidth="40dp"
android:minHeight="40dp"
android:minResizeWidth="40dp"
android:minResizeHeight="40dp"
android:targetCellWidth="2"
android:targetCellHeight="2"
android:updatePeriodMillis="0"
android:resizeMode="horizontal|vertical"
android:widgetCategory="home_screen"
android:previewImage="@drawable/weather_preview" />
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="250dp"
android:minHeight="110dp"
android:minWidth="40dp"
android:minHeight="40dp"
android:minResizeWidth="40dp"
android:minResizeHeight="40dp"
android:updatePeriodMillis="0"
android:resizeMode="horizontal|vertical"
android:widgetCategory="home_screen"
android:previewImage="@drawable/current_and_hourly_widget_preview" />
android:previewImage="@drawable/weather_preview" />