1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-08 14:41:36 +02:00

Pebble: when faking the OWN response also set the "description" field with the current condition

Helps TrekVolle to display weather
This commit is contained in:
Andreas Shimokawa 2018-02-03 23:08:12 +01:00
parent 560f1705f4
commit 06929d04f9
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class Weather {
try {
condition.put("id", weatherSpec.currentConditionCode);
condition.put("main", weatherSpec.currentCondition);
condition.put("description", weatherSpec.currentCondition);
condition.put("icon", Weather.mapToOpenWeatherMapIcon(weatherSpec.currentConditionCode));
weather.put(condition);

View File

@ -88,6 +88,7 @@ public class ParcelableWeather2 implements Parcelable {
try {
condition.put("id", forecastConditionCode);
condition.put("main", forecastBundle.getString("weather_condition_text"));
condition.put("description", forecastBundle.getString("weather_condition_text"));
condition.put("icon", Weather.mapToOpenWeatherMapIcon(forecastConditionCode));
weather.put(condition);