From 6c8f0e1b49d9ad1bbbc5ccbde62b1f037dbf1f65 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/Android/WeatherInformation/res/xml/weather_preferences.xml b/Android/WeatherInformation/res/xml/weather_preferences.xml index a2754f8..6bf3bb0 100644 --- a/Android/WeatherInformation/res/xml/weather_preferences.xml +++ b/Android/WeatherInformation/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"/>