Weather: Add switches to show city/temp on lockscreen [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
mydongistiny
2018-10-14 17:06:25 +05:30
committed by Hưng Phan
parent 2560bfe610
commit e43f47cf7a
2 changed files with 18 additions and 0 deletions

View File

@@ -838,4 +838,10 @@
<string name="pixel_navbar_anim_title">Pixel animation</string> <string name="pixel_navbar_anim_title">Pixel animation</string>
<string name="pixel_navbar_anim_summary">Toggle home button animation</string> <string name="pixel_navbar_anim_summary">Toggle home button animation</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>
</resources> </resources>

View File

@@ -36,4 +36,16 @@
android:icon="@drawable/ic_info_outline_24dp" android:icon="@drawable/ic_info_outline_24dp"
android:persistent="false" android:persistent="false"
android:summary="@string/weather_icon_pack_info_title" /> android:summary="@string/weather_icon_pack_info_title" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_weather_show_city"
android:title="@string/lockscreen_weather_show_city_title"
android:summary="@string/lockscreen_weather_show_city_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_weather_show_temp"
android:title="@string/lockscreen_weather_show_temp_title"
android:summary="@string/lockscreen_weather_show_temp_summary"
android:defaultValue="true" />
</PreferenceScreen> </PreferenceScreen>