mirror of https://github.com/M66B/FairEmail.git
Run all executors in background
This commit is contained in:
parent
4e5eecfece
commit
7c6841b936
|
@ -49,7 +49,7 @@ public class EntityLog {
|
||||||
@NonNull
|
@NonNull
|
||||||
public String data;
|
public String data;
|
||||||
|
|
||||||
private static ExecutorService executor = Executors.newSingleThreadExecutor();
|
private static ExecutorService executor = Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
|
||||||
|
|
||||||
static void log(Context context, String data) {
|
static void log(Context context, String data) {
|
||||||
Log.i(Helper.TAG, data);
|
Log.i(Helper.TAG, data);
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class FragmentMessages extends FragmentEx {
|
||||||
private SearchState searchState = SearchState.Reset;
|
private SearchState searchState = SearchState.Reset;
|
||||||
private BoundaryCallbackMessages searchCallback = null;
|
private BoundaryCallbackMessages searchCallback = null;
|
||||||
|
|
||||||
private ExecutorService executor = Executors.newCachedThreadPool();
|
private ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
|
||||||
|
|
||||||
private static final int MESSAGES_PAGE_SIZE = 50;
|
private static final int MESSAGES_PAGE_SIZE = 50;
|
||||||
private static final int SEARCH_PAGE_SIZE = 10;
|
private static final int SEARCH_PAGE_SIZE = 10;
|
||||||
|
|
Loading…
Reference in New Issue