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

Commit db3baa15 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Add refresh button in weather widget

parent ece26083
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line 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_setting_imageview).setOnClickListener(v -> startWeatherPreferences());
        findViewById(R.id.weather_refresh_imageview).setOnClickListener(v -> WeatherUpdateService.scheduleNextUpdate(getContext(), true));
    }
    }


    @Override
    @Override
+9 −1
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@
            android:layout_width="match_parent"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_centerVertical="true"
            android:layout_toStartOf="@+id/weather_setting_imageview"
            android:layout_toStartOf="@+id/weather_refresh_imageview"
            android:padding="8dp"
            android:padding="8dp"
            android:text="@string/weather"
            android:text="@string/weather"
            style="@style/WidgetTitle" />
            style="@style/WidgetTitle" />
@@ -28,6 +28,14 @@
            android:contentDescription="@string/weather_setting"
            android:contentDescription="@string/weather_setting"
            android:padding="8dp"
            android:padding="8dp"
            android:src="@drawable/ic_settings_white_24dp" />
            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>
    </RelativeLayout>


    <FrameLayout
    <FrameLayout