Evolver: Add shortcut to configure Weather settings

This commit is contained in:
Pranav Vashi
2025-02-11 02:35:10 +09:00
committed by Joey Huab
parent f5f801e2bc
commit 047a55cbc5
2 changed files with 49 additions and 0 deletions

View File

@@ -700,4 +700,18 @@
<string name="qs_panel_tile_haptic_intensity_title">QS tile haptics intensity</string>
<string name="qs_haptics_intensity_title">Qs fling haptics intensity</string>
<string name="qs_tiles_haptic_feedback_title">Vibrate on touching QS tiles</string>
<!-- Weather -->
<string name="weather_settings_title">Weather settings</string>
<string name="weather_settings_summary">Setup icon pack and weather service</string>
<string name="lockscreen_weather_category">Weather</string>
<string name="lockscreen_weather_title">Weather update</string>
<string name="lockscreen_weather_summary">Display current weather update</string>
<string name="lockscreen_weather_enabled_info">Requires weather service to be enabled</string>
<string name="lockscreen_weather_location_title">Current location</string>
<string name="lockscreen_weather_location_summary">Display current weather location</string>
<string name="lockscreen_weather_text_title">Current condition</string>
<string name="lockscreen_weather_text_summary">Display current weather condition summary</string>
<string name="lockscreen_weather_style_title">Pixel style</string>
<string name="lockscreen_weather_style_summary">Display weather as separate row</string>
</resources>

View File

@@ -64,6 +64,41 @@
android:fragment="org.evolution.settings.fragments.lockscreen.PulseSettings" />
</PreferenceCategory>
<PreferenceCategory
android:key="lockscreen_weather_category"
android:title="@string/lockscreen_weather_category">
<Preference
android:title="@string/weather_settings_title"
android:summary="@string/weather_settings_summary">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="org.omnirom.omnijaws"
android:targetClass="org.omnirom.omnijaws.SettingsActivity" />
</Preference>
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_weather_enabled"
android:title="@string/lockscreen_weather_title"
android:summary="@string/lockscreen_weather_summary"
android:defaultValue="false" />
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_weather_location"
android:title="@string/lockscreen_weather_location_title"
android:summary="@string/lockscreen_weather_location_summary"
android:defaultValue="false"
android:dependency="lockscreen_weather_enabled" />
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="lockscreen_weather_text"
android:title="@string/lockscreen_weather_text_title"
android:summary="@string/lockscreen_weather_text_summary"
android:defaultValue="true"
android:dependency="lockscreen_weather_enabled" />
</PreferenceCategory>
<PreferenceCategory
android:key="lock_screen_fingerprint_category"
android:title="@string/lock_screen_fingerprint_category">