mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 11:26:47 +01: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:
parent
560f1705f4
commit
06929d04f9
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user