From 32dc62afc590fa6e7e5104c7b5fed6c8e55c380c Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Wed, 8 Oct 2014 04:31:48 +0200 Subject: [PATCH] WeatherInformation: preference cancel/start notification --- res/xml/weather_preferences.xml | 4 +- .../WeatherInformationPreferencesFragment.java | 130 +++++++++++++-------- 2 files changed, 81 insertions(+), 53 deletions(-) diff --git a/res/xml/weather_preferences.xml b/res/xml/weather_preferences.xml index a2754f8..6bf3bb0 100644 --- a/res/xml/weather_preferences.xml +++ b/res/xml/weather_preferences.xml @@ -40,9 +40,9 @@ android:summaryOff="@string/weather_preferences_notifications_switch_off_summary" android:switchTextOff="@string/weather_preferences_notifications_switch_off" android:switchTextOn="@string/weather_preferences_notifications_switch_on" - android:selectable="false" + android:selectable="true" android:enabled="true" - android:defaultValue="On" + android:defaultValue="@string/weather_preferences_notifications_switch_off" android:disableDependentsState="false" android:persistent="true"/>