Commit 13f6f224 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '5438-add_refresh_button' into 'master'

Add refresh button in weather widget

See merge request !103
parents ece26083 db3baa15
Pipeline #190914 passed with stage
in 4 minutes and 6 seconds
......@@ -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
......
......@@ -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" />
<ImageView
android:id="@+id/weather_refresh_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toStartOf="@id/weather_setting_imageview"
android:src="@drawable/ic_refresh_white_24dp"
android:padding="8dp" />
</RelativeLayout>
<FrameLayout
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment