mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +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 {
|
try {
|
||||||
condition.put("id", weatherSpec.currentConditionCode);
|
condition.put("id", weatherSpec.currentConditionCode);
|
||||||
condition.put("main", weatherSpec.currentCondition);
|
condition.put("main", weatherSpec.currentCondition);
|
||||||
|
condition.put("description", weatherSpec.currentCondition);
|
||||||
condition.put("icon", Weather.mapToOpenWeatherMapIcon(weatherSpec.currentConditionCode));
|
condition.put("icon", Weather.mapToOpenWeatherMapIcon(weatherSpec.currentConditionCode));
|
||||||
weather.put(condition);
|
weather.put(condition);
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ public class ParcelableWeather2 implements Parcelable {
|
|||||||
try {
|
try {
|
||||||
condition.put("id", forecastConditionCode);
|
condition.put("id", forecastConditionCode);
|
||||||
condition.put("main", forecastBundle.getString("weather_condition_text"));
|
condition.put("main", forecastBundle.getString("weather_condition_text"));
|
||||||
|
condition.put("description", forecastBundle.getString("weather_condition_text"));
|
||||||
condition.put("icon", Weather.mapToOpenWeatherMapIcon(forecastConditionCode));
|
condition.put("icon", Weather.mapToOpenWeatherMapIcon(forecastConditionCode));
|
||||||
weather.put(condition);
|
weather.put(condition);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user