From 572607a76bdb4a37d5b5c3e7eb6db2b96610baba Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 14 Feb 2019 12:47:02 +0000 Subject: [PATCH] Small fix --- .../main/java/eu/faircode/email/ServiceTileSynchronize.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceTileSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceTileSynchronize.java index 3f79ae4985..ebbbb737ba 100644 --- a/app/src/main/java/eu/faircode/email/ServiceTileSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceTileSynchronize.java @@ -44,7 +44,7 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere private void update() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); - boolean enabled = prefs.getBoolean("enabled", false); + boolean enabled = prefs.getBoolean("enabled", true); Log.i("Update tile synchronize=" + enabled); Tile tile = getQsTile(); @@ -66,7 +66,7 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere Log.i("Click tile synchronize"); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); - boolean enabled = !prefs.getBoolean("enabled", false); + boolean enabled = !prefs.getBoolean("enabled", true); prefs.edit().putBoolean("enabled", enabled).apply(); ServiceSynchronize.reload(this, "tile=" + enabled); }