diff --git a/data/weather/src/main/java/de/mm20/launcher2/weather/WeatherRepository.kt b/data/weather/src/main/java/de/mm20/launcher2/weather/WeatherRepository.kt index b43e830b8..33a8b1bca 100644 --- a/data/weather/src/main/java/de/mm20/launcher2/weather/WeatherRepository.kt +++ b/data/weather/src/main/java/de/mm20/launcher2/weather/WeatherRepository.kt @@ -241,7 +241,7 @@ class WeatherUpdateWorker( val weatherData = when { // A managed location means the provider resolves the position itself, so requesting // one here would be wasted work that holds the location stack open. - settingsData.managedLocation, !settingsData.autoLocation -> { + settingsData.managedLocation || !settingsData.autoLocation -> { val location = settings.location.first() if (location == null) { Log.e("WeatherUpdateWorker", "Location not set")