mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Small improvements
This commit is contained in:
@@ -95,10 +95,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
return localExecutor;
|
||||
|
||||
if (globalExecutor == null) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
int threads = prefs.getInt("query_threads", Runtime.getRuntime().availableProcessors());
|
||||
Log.i("Task threads=" + threads);
|
||||
globalExecutor = Helper.getBackgroundExecutor(threads, "task");
|
||||
int processors = Runtime.getRuntime().availableProcessors();
|
||||
globalExecutor = Helper.getBackgroundExecutor(processors, "task");
|
||||
}
|
||||
|
||||
return globalExecutor;
|
||||
|
||||
Reference in New Issue
Block a user