diff --git a/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java b/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java index 01ba72dc17f8ac3ac5120387df99b08481735f42..e2b200fbe60ac297a37cfadf8db42d2da035862a 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java @@ -52,6 +52,7 @@ public class WeatherInfoView extends LinearLayout { } }); findViewById(R.id.weather_setting_imageview).setOnClickListener(v -> startWeatherPreferences()); + findViewById(R.id.weather_refresh_imageview).setOnClickListener(v -> WeatherUpdateService.scheduleNextUpdate(getContext(), true)); } @Override diff --git a/app/src/main/res/layout/layout_weather_info.xml b/app/src/main/res/layout/layout_weather_info.xml index d2b9e555fc2a4342573b31946172f226f3246d5b..d0bdfcead1cbe60256a7f50cce4c0259b4ef3bd4 100644 --- a/app/src/main/res/layout/layout_weather_info.xml +++ b/app/src/main/res/layout/layout_weather_info.xml @@ -15,7 +15,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_toStartOf="@+id/weather_setting_imageview" + android:layout_toStartOf="@+id/weather_refresh_imageview" android:padding="8dp" android:text="@string/weather" style="@style/WidgetTitle" /> @@ -28,6 +28,14 @@ android:contentDescription="@string/weather_setting" android:padding="8dp" android:src="@drawable/ic_settings_white_24dp" /> + +