summaryrefslogtreecommitdiffstats
path: root/res/xml/preferences_weather.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/xml/preferences_weather.xml')
-rw-r--r--res/xml/preferences_weather.xml32
1 files changed, 16 insertions, 16 deletions
diff --git a/res/xml/preferences_weather.xml b/res/xml/preferences_weather.xml
index db832a6..6f7842e 100644
--- a/res/xml/preferences_weather.xml
+++ b/res/xml/preferences_weather.xml
@@ -26,18 +26,17 @@
android:title="@string/weather_enable"
android:defaultValue="true" />
- <ListPreference
+ <PreferenceScreen
android:key="weather_source"
- android:defaultValue="yahoo"
- android:dependency="show_weather"
- android:summary="%s"
- android:entries="@array/weather_source_entries"
- android:entryValues="@array/weather_source_values"
- android:title="@string/weather_source_title" />
+ android:defaultValue=""
+ android:summary="@string/weather_source_not_selected"
+ android:title="@string/weather_source_title">
+ <intent android:action="cyanogenmod.intent.action.MANAGE_WEATHER_PROVIDER_SERVICES" />
+ </PreferenceScreen>
<ListPreference
android:key="weather_refresh_interval"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:defaultValue="60"
android:summary="%s"
android:entries="@array/weather_interval_entries"
@@ -46,7 +45,7 @@
<SwitchPreference
android:key="weather_use_custom_location"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_use_custom_location"
android:defaultValue="false" />
@@ -64,42 +63,43 @@
android:key="weather_icons"
android:title="@string/weather_icon_set_title"
android:dialogTitle="@string/weather_icon_set_title"
+ android:dependency="weather_source"
android:defaultValue="color" />
<SwitchPreference
android:key="weather_show_when_minimized"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_show_when_minimized_title"
android:summary="@string/weather_show_when_minimized_summary"
android:defaultValue="true" />
<SwitchPreference
android:key="weather_use_metric"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_use_metric" />
<SwitchPreference
android:key="weather_show_location"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_show_location_title"
android:defaultValue="true" />
<SwitchPreference
android:key="weather_show_timestamp"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_show_timestamp_title"
android:defaultValue="true" />
<SwitchPreference
android:key="weather_invert_lowhigh"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:title="@string/weather_invert_lowhigh"
android:defaultValue="false" />
<ListPreference
android:key="weather_font_color"
android:title="@string/font_color"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:defaultValue="#ffffffff"
android:entries="@array/font_color_entries"
android:entryValues="@array/font_color_values" />
@@ -107,7 +107,7 @@
<ListPreference
android:key="weather_timestamp_font_color"
android:title="@string/font_color_timestamp"
- android:dependency="show_weather"
+ android:dependency="weather_source"
android:defaultValue="#80ffffff"
android:entries="@array/font_color_entries"
android:entryValues="@array/font_color_values" />