From 98dcd5810d735f0e65383819d16005fc162d51ed Mon Sep 17 00:00:00 2001 From: ottoptj Date: Tue, 24 Sep 2024 13:25:03 +0300 Subject: [PATCH] Fixed an issue with GPS location --- .../main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt b/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt index a2cba8b..0a3f231 100644 --- a/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt +++ b/app/src/main/java/eu/ottop/yamlauncher/utils/WeatherSystem.kt @@ -46,6 +46,11 @@ class WeatherSystem(private val context: Context) { sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", "Latest GPS location") activity.updateWeatherText() } + + } else { + CoroutineScope(Dispatchers.IO).launch { + activity.updateWeatherText() + } } }