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() + } } }