mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
weather: try to reduce risk of TransactionTooLargeException
This commit is contained in:
+5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user