mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
By default, sync under all conditions (ref #127).
This is so the user knows *why* syncthing disables itself.
This commit is contained in:
parent
879616a715
commit
33491bb40f
2 changed files with 4 additions and 4 deletions
|
@ -141,8 +141,8 @@ public class SyncthingService extends Service {
|
|||
*/
|
||||
public void updateState() {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean prefStopMobileData = prefs.getBoolean(PREF_SYNC_ONLY_WIFI, true);
|
||||
boolean prefStopNotCharging = prefs.getBoolean(PREF_SYNC_ONLY_CHARGING, true);
|
||||
boolean prefStopMobileData = prefs.getBoolean(PREF_SYNC_ONLY_WIFI, false);
|
||||
boolean prefStopNotCharging = prefs.getBoolean(PREF_SYNC_ONLY_CHARGING, false);
|
||||
|
||||
// Start syncthing.
|
||||
if ((mDeviceStateHolder.isCharging() || !prefStopNotCharging) &&
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
<CheckBoxPreference
|
||||
android:key="sync_only_charging"
|
||||
android:title="@string/sync_only_charging"
|
||||
android:defaultValue="true" />
|
||||
android:defaultValue="false" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="sync_only_wifi"
|
||||
android:title="@string/sync_only_wifi"
|
||||
android:defaultValue="true" />
|
||||
android:defaultValue="false" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="syncthing_options"
|
||||
|
|
Loading…
Reference in a new issue