From 5d3b72c54b4d9a564be9dc31ccd89b41b9c9decf Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 26 Apr 2019 13:24:07 -0500 Subject: [PATCH] Fix preference errors --- .../debug/java/org/tasks/preferences/DebugPreferences.java | 6 ++++-- app/src/main/res/values/keys.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/debug/java/org/tasks/preferences/DebugPreferences.java b/app/src/debug/java/org/tasks/preferences/DebugPreferences.java index afc5729e3..24e2fd459 100644 --- a/app/src/debug/java/org/tasks/preferences/DebugPreferences.java +++ b/app/src/debug/java/org/tasks/preferences/DebugPreferences.java @@ -24,8 +24,10 @@ public class DebugPreferences extends InjectingPreferenceActivity { findPreference(pref) .setOnPreferenceChangeListener( (preference, newValue) -> { - showRestartDialog(); - return false; + if (newValue != null && ((Boolean) newValue)) { + showRestartDialog(); + } + return true; }); } } diff --git a/app/src/main/res/values/keys.xml b/app/src/main/res/values/keys.xml index 8ebf9fb95..b45f07cc5 100644 --- a/app/src/main/res/values/keys.xml +++ b/app/src/main/res/values/keys.xml @@ -309,5 +309,5 @@ place_provider preference_screen add_google_task_account - add_google_task_account + add_caldav_account