Skip to content

Commit

Permalink
Fix weather icon issue of Oneplus weather provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengfei Wu authored and nyancrimew committed Oct 14, 2019
1 parent 5a8a4be commit dec44c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lawnchair/src/net/oneplus/launcher/OPWeatherProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ private void processWeatherInformation(Cursor cursor) {
new SimpleDateFormat("yyyyMMddkkmm", Locale.getDefault()).parse(string2)
.getTime() / 1000;
weatherData.cityName = string;
weatherData.weatherCode = WEATHER_TYPE
.getWeather(Integer.parseInt(string3)).weatherCode;
WEATHER_TYPE weatherType = WEATHER_TYPE.getWeather(Integer.parseInt(string3));
weatherData.weatherCode = weatherType.weatherCode;
weatherData.icon = weatherType.icon;
weatherData.weatherName = string4;
weatherData.temperature = Integer.parseInt(string5);
weatherData.temperatureHigh = Integer.parseInt(string6);
Expand Down

0 comments on commit dec44c0

Please sign in to comment.