weather: try to reduce risk of TransactionTooLargeException

This commit is contained in:
Thomas Kuehne
2025-08-14 09:49:32 +02:00
parent 21a272cd74
commit 3b5ea9bf7f
@@ -101,6 +101,11 @@ public class GenericWeatherReceiver extends BroadcastReceiver {
}
LOG.info("Got generic weather for {} locations", weathers.size());
// try to avoid TransactionTooLargeException in DeviceService
bundle.clear();
intent.replaceExtras((Bundle)null);
Weather.setWeatherSpec(weathers);
GBApplication.deviceService().onSendWeather(weathers);
} catch (final Exception e) {