mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user