Added setting to use unmetered connections only

This commit is contained in:
M66B
2018-11-27 16:36:42 +01:00
parent fc10cb600a
commit 57ad9e0e92
7 changed files with 163 additions and 206 deletions

View File

@@ -69,9 +69,6 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean enabled = !prefs.getBoolean("enabled", false);
prefs.edit().putBoolean("enabled", enabled).apply();
if (enabled)
ServiceSynchronize.start(this);
else
ServiceSynchronize.stop(this);
ServiceSynchronize.reload(this, "tile=" + enabled);
}
}