Skip to content

Commit

Permalink
Force Weather View to update
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed May 6, 2024
1 parent 57e348e commit 47efd7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,9 +699,6 @@ private void placeWeatherView() {
} catch (Throwable ignored) {
}
mClockViewContainer.addView(currentWeatherView);
WeatherUpdateService.cancelAllUpdate(mContext);
WeatherUpdateService.scheduleUpdateNow(mContext);
WeatherUpdateService.scheduleUpdatePeriodic(mContext);
refreshWeatherView(currentWeatherView);
updateMargins(currentWeatherView);
} catch (Throwable ignored) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public void enableUpdates() {
log(TAG + "enableUpdates");
if (mWeatherClient != null) {
mWeatherClient.addObserver(this);
WeatherUpdateService.scheduleUpdateNow(mContext);
queryAndUpdateWeather();
}
}
Expand Down

0 comments on commit 47efd7d

Please sign in to comment.