mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Also start Syncthing using thread pool
This commit is contained in:
parent
ade637521e
commit
90aa29d81d
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ public class SyncthingService extends Service implements
|
||||||
registerReceiver(mPowerSaveModeChangedReceiver,
|
registerReceiver(mPowerSaveModeChangedReceiver,
|
||||||
new IntentFilter(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED));
|
new IntentFilter(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED));
|
||||||
}
|
}
|
||||||
new StartupTask().execute();
|
new StartupTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||||
PreferenceManager.getDefaultSharedPreferences(this)
|
PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
.registerOnSharedPreferenceChangeListener(this);
|
.registerOnSharedPreferenceChangeListener(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue