From 5a6a9cbf02fbf917cf4dcf299e88ebb962201d8c Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 8 May 2019 10:40:54 -0500 Subject: [PATCH] Restart when turning off debug preferences --- .../debug/java/org/tasks/preferences/DebugPreferences.java | 4 +--- 1 file changed, 1 insertion(+), 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 24e2fd459..581baa887 100644 --- a/app/src/debug/java/org/tasks/preferences/DebugPreferences.java +++ b/app/src/debug/java/org/tasks/preferences/DebugPreferences.java @@ -24,9 +24,7 @@ public class DebugPreferences extends InjectingPreferenceActivity { findPreference(pref) .setOnPreferenceChangeListener( (preference, newValue) -> { - if (newValue != null && ((Boolean) newValue)) { - showRestartDialog(); - } + showRestartDialog(); return true; }); }