pull/147/head
M66B 6 years ago
parent 041f2ca3d4
commit 572607a76b

@ -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);
}

Loading…
Cancel
Save