1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-13 03:07:32 +01:00

DebugActivity: send list of weather specs when pressing 'set weather'

This commit is contained in:
MrYoranimo 2024-03-31 15:56:07 +02:00
parent a5ff360497
commit 260dec5b27

View File

@ -376,7 +376,9 @@ public class DebugActivity extends AbstractGBActivity {
Weather.getInstance().setWeatherSpec(new ArrayList<>(Collections.singletonList(weatherSpec))); Weather.getInstance().setWeatherSpec(new ArrayList<>(Collections.singletonList(weatherSpec)));
} }
GBApplication.deviceService().onSendWeather(new ArrayList<>(Collections.singletonList(Weather.getInstance().getWeatherSpec())));
final ArrayList<WeatherSpec> specs = new ArrayList<>(Weather.getInstance().getWeatherSpecs());
GBApplication.deviceService().onSendWeather(specs);
} }
}); });