1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

WIP - Allow applying run conditions to foreground and background

execution of the syncthing app
This commit is contained in:
Catfriend1 2018-07-25 10:11:21 +02:00
parent 6d9f9dea80
commit 4232f7f468

View file

@ -167,16 +167,6 @@ public class RunConditionMonitor implements SharedPreferences.OnSharedPreference
}
}
// Always run in background
if (!prefAlwaysRunInBackground) {
/**
* User did not specify run conditions in the options.
* The app is displaying a foreground activity and syncthing should run.
*/
Log.v(TAG, "decideShouldRun: !prefAlwaysRunInBackground");
return true;
}
// PREF_POWER_SOURCE
switch (prefPowerSource) {
case POWER_SOURCE_AC: