diff --git a/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/worker/WeatherRequestWorker.java b/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/worker/WeatherRequestWorker.java index ce1724e48cbd41859bbbff82b16b11386fa7732b..c24fe758e8395e0be15853856500eef27d988713 100644 --- a/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/worker/WeatherRequestWorker.java +++ b/app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/worker/WeatherRequestWorker.java @@ -39,17 +39,18 @@ public abstract class WeatherRequestWorker extends Worker { protected static void requestWeatherUpdate(Context context, Location location) { Log.i(TAG, "Requesting weather info for location: " + location); LineageWeatherManager weatherManager = LineageWeatherManager.getInstance(context); - weatherManager.requestWeatherUpdate(location, (info, weatherInfo) -> notifyUi(context, weatherInfo)); + weatherManager.requestWeatherUpdate(location, (status, weatherInfo) -> notifyUi(context, weatherInfo, status)); } protected static void requestCustomWeatherUpdate(Context context, WeatherLocation location) { Log.i(TAG, "Requesting weather info for location: " + location); LineageWeatherManager weatherManager = LineageWeatherManager.getInstance(context); - weatherManager.requestWeatherUpdate(location, (info, weatherInfo) -> notifyUi(context, weatherInfo)); + weatherManager.requestWeatherUpdate(location, (status, weatherInfo) -> notifyUi(context, weatherInfo, status)); } - protected static void notifyUi(@NonNull Context context, @Nullable WeatherInfo weatherInfo) { + protected static void notifyUi(@NonNull Context context, @Nullable WeatherInfo weatherInfo, int status) { if (weatherInfo == null) { + Log.i(TAG, "WeatherInfo is null. Status reported: " + status); return; }