From f73101a69e32ee5b3ee5ccbd85bb223598d45552 Mon Sep 17 00:00:00 2001 From: PranshulGG Date: Sun, 12 Jul 2026 17:27:32 +0530 Subject: [PATCH] update widget labels, add Weather 4 widget receiver, and use AppException in SmhiRepository --- app/src/main/AndroidManifest.xml | 26 ++++++++++++++----- .../sources/weather/smhi/SmhiRepository.kt | 3 ++- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d3b165d68..f8b064a8e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -63,7 +63,7 @@ @@ -77,7 +77,7 @@ @@ -91,7 +91,7 @@ @@ -105,7 +105,7 @@ @@ -119,7 +119,7 @@ @@ -133,7 +133,7 @@ @@ -144,6 +144,20 @@ android:name="android.appwidget.provider" android:resource="@xml/clock_daily_widget_info" /> + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/smhi/SmhiRepository.kt b/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/smhi/SmhiRepository.kt index 64e9182b2..cb34e1f65 100644 --- a/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/smhi/SmhiRepository.kt +++ b/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/smhi/SmhiRepository.kt @@ -1,5 +1,6 @@ package com.pranshulgg.weather_master_app.core.network.sources.weather.smhi +import com.pranshulgg.weather_master_app.core.model.domain.AppException import com.pranshulgg.weather_master_app.core.model.domain.location.Location import com.pranshulgg.weather_master_app.core.model.weather.WeatherResult import com.pranshulgg.weather_master_app.core.model.weather.WeatherResultType @@ -48,7 +49,7 @@ class SmhiRepository @Inject constructor( val body = response.body() - ?: return@withContext WeatherResult.Error(exception = UnknownHostException()) + ?: return@withContext WeatherResult.Error(exception = AppException.Unknown()) val domain = body.toDomain(location)