1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +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)));
}
GBApplication.deviceService().onSendWeather(new ArrayList<>(Collections.singletonList(Weather.getInstance().getWeatherSpec())));
final ArrayList<WeatherSpec> specs = new ArrayList<>(Weather.getInstance().getWeatherSpecs());
GBApplication.deviceService().onSendWeather(specs);
}
});