mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 13:26:50 +01:00
Show UV Index and precip probability for cached weather
This commit is contained in:
parent
a0424527d5
commit
50f962c520
@ -384,13 +384,10 @@ public class DebugActivity extends AbstractGBActivity {
|
|||||||
String weatherInfo = getWeatherInfo();
|
String weatherInfo = getWeatherInfo();
|
||||||
|
|
||||||
new AlertDialog.Builder(DebugActivity.this)
|
new AlertDialog.Builder(DebugActivity.this)
|
||||||
.setCancelable(false)
|
.setCancelable(true)
|
||||||
.setTitle("Cached Weather Data")
|
.setTitle("Cached Weather Data")
|
||||||
.setMessage(weatherInfo)
|
.setMessage(weatherInfo)
|
||||||
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.ok, (dialog, which) -> {
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
@ -1052,6 +1049,8 @@ public class DebugActivity extends AbstractGBActivity {
|
|||||||
info += "Humidity: " + weatherSpec.currentHumidity + "\n";
|
info += "Humidity: " + weatherSpec.currentHumidity + "\n";
|
||||||
info += "Wind Speed: " + weatherSpec.windSpeed + " kmph\n";
|
info += "Wind Speed: " + weatherSpec.windSpeed + " kmph\n";
|
||||||
info += "Wind Direction: " + weatherSpec.windDirection + " deg\n";
|
info += "Wind Direction: " + weatherSpec.windDirection + " deg\n";
|
||||||
|
info += "UV Index: " + weatherSpec.uvIndex + "\n";
|
||||||
|
info += "Precip Probability: " + weatherSpec.precipProbability + " %\n";
|
||||||
for (int i=0;i<weatherSpec.forecasts.size();i++) {
|
for (int i=0;i<weatherSpec.forecasts.size();i++) {
|
||||||
info += "-------------\n";
|
info += "-------------\n";
|
||||||
info += "-->Day " + i +"\n";
|
info += "-->Day " + i +"\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user