From 95f1ba152e5ec5103e4745bfab91cbe65c002d56 Mon Sep 17 00:00:00 2001 From: PranshulGG Date: Tue, 7 Jul 2026 14:42:38 +0530 Subject: [PATCH] fix parameter order in WeatherWidgetLarge --- .../weather_master_app/feature/shared/WeatherViewModel.kt | 2 +- .../widgets/weather/ui/variants/WeatherWidgetLarge.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/pranshulgg/weather_master_app/feature/shared/WeatherViewModel.kt b/app/src/main/java/com/pranshulgg/weather_master_app/feature/shared/WeatherViewModel.kt index d97f97147..7c59c3f9d 100644 --- a/app/src/main/java/com/pranshulgg/weather_master_app/feature/shared/WeatherViewModel.kt +++ b/app/src/main/java/com/pranshulgg/weather_master_app/feature/shared/WeatherViewModel.kt @@ -64,7 +64,7 @@ class WeatherViewModel @Inject constructor( val isLocationsEmpty = locationsRepo.isLocationsEmpty() if (isLocationsEmpty) { - // Locations Empty? not possible, likely a first launch + // Locations Empty? can't happen, likely a first launch _uiState.value = uiState.value.copy(isInitialized = true) } val default = locationsRepo.getDefaultLocation().filterNotNull().first() diff --git a/app/src/main/java/com/pranshulgg/weather_master_app/widgets/weather/ui/variants/WeatherWidgetLarge.kt b/app/src/main/java/com/pranshulgg/weather_master_app/widgets/weather/ui/variants/WeatherWidgetLarge.kt index c03968be5..61366c416 100644 --- a/app/src/main/java/com/pranshulgg/weather_master_app/widgets/weather/ui/variants/WeatherWidgetLarge.kt +++ b/app/src/main/java/com/pranshulgg/weather_master_app/widgets/weather/ui/variants/WeatherWidgetLarge.kt @@ -130,8 +130,8 @@ fun WeatherWidgetLarge(state: WidgetWeather?, count: Int, config: WidgetConfig) it.time, it.temp, it.conditionIcon, - hourlyIconSize, - hourlyTextSize + hourlyTextSize, + hourlyIconSize ) } }