mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
041f2ca3d4
commit
572607a76b
|
@ -44,7 +44,7 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere
|
||||||
|
|
||||||
private void update() {
|
private void update() {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
boolean enabled = prefs.getBoolean("enabled", false);
|
boolean enabled = prefs.getBoolean("enabled", true);
|
||||||
Log.i("Update tile synchronize=" + enabled);
|
Log.i("Update tile synchronize=" + enabled);
|
||||||
|
|
||||||
Tile tile = getQsTile();
|
Tile tile = getQsTile();
|
||||||
|
@ -66,7 +66,7 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere
|
||||||
Log.i("Click tile synchronize");
|
Log.i("Click tile synchronize");
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
boolean enabled = !prefs.getBoolean("enabled", false);
|
boolean enabled = !prefs.getBoolean("enabled", true);
|
||||||
prefs.edit().putBoolean("enabled", enabled).apply();
|
prefs.edit().putBoolean("enabled", enabled).apply();
|
||||||
ServiceSynchronize.reload(this, "tile=" + enabled);
|
ServiceSynchronize.reload(this, "tile=" + enabled);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue