Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+9 −1
Original line number Diff line number Diff line
@@ -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