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:
parent
6d9f9dea80
commit
4232f7f468
1 changed files with 0 additions and 10 deletions
|
@ -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
|
// PREF_POWER_SOURCE
|
||||||
switch (prefPowerSource) {
|
switch (prefPowerSource) {
|
||||||
case POWER_SOURCE_AC:
|
case POWER_SOURCE_AC:
|
||||||
|
|
Loading…
Reference in a new issue