summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormydongistiny <mydongistiny@users.noreply.github.com>2023-05-03 23:16:55 +0300
committerJulian Veit <claymore1298@gmail.com>2023-10-05 07:43:57 +0200
commit1b1c726a559a2beac3733a083f82009d7585af6e (patch)
tree8d1de9a0a49218a4e9da2da3ad23bdaba1ba19b1
parent38fc5df25f08dfca3e27b8e9e094ed9c6bedfdc8 (diff)
Weather: Add switches to show city/temp on lockscreen [2/2]t13.0
Change-Id: Iad5dc00f266441b9fcbdfca5a030c6eb38f7f1d2
-rw-r--r--res/values/strings.xml6
-rw-r--r--res/xml/weather.xml14
2 files changed, 20 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 29ea88cc0..4efb0981f 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -770,6 +770,12 @@
<string name="lock_screen_weather_condition_icon_summaryOn">Condition icon is shown on Lockscreen</string>
<string name="lock_screen_weather_condition_icon_summaryOff">Condition icon is hidden on Lockscreen</string>
+ <!-- LockWeather Switches -->
+ <string name="lockscreen_weather_show_city_title">Show city name</string>
+ <string name="lockscreen_weather_show_city_summary">Show name of current city on left of image</string>
+ <string name="lockscreen_weather_show_temp_title">Show temperature</string>
+ <string name="lockscreen_weather_show_temp_summary">Show current city temperature on right of image</string>
+
<!-- Statusbar ticker -->
<string name="status_bar_ticker_title">Ticker</string>
<string name="status_bar_show_ticker_title">Ticker</string>
diff --git a/res/xml/weather.xml b/res/xml/weather.xml
index 4031bed9e..6d33d8721 100644
--- a/res/xml/weather.xml
+++ b/res/xml/weather.xml
@@ -58,6 +58,20 @@
android:defaultValue="false"
android:dependency="lockscreen_weather_enabled" />
+ <com.aicp.gear.preference.SystemSettingSwitchPreference
+ android:key="lockscreen_weather_show_city"
+ android:title="@string/lockscreen_weather_show_city_title"
+ android:summary="@string/lockscreen_weather_show_city_summary"
+ android:dependency="lockscreen_weather_enabled"
+ android:defaultValue="false" />
+
+ <com.aicp.gear.preference.SystemSettingSwitchPreference
+ android:key="lockscreen_weather_show_temp"
+ android:title="@string/lockscreen_weather_show_temp_title"
+ android:summary="@string/lockscreen_weather_show_temp_summary"
+ android:dependency="lockscreen_weather_enabled"
+ android:defaultValue="true" />
+
</PreferenceCategory>
<!--com.android.settingslib.widget.FooterPreference