Run all executors in background

This commit is contained in:
M66B 2018-09-14 17:34:03 +00:00
parent 4e5eecfece
commit 7c6841b936
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class EntityLog {
@NonNull
public String data;
private static ExecutorService executor = Executors.newSingleThreadExecutor();
private static ExecutorService executor = Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
static void log(Context context, String data) {
Log.i(Helper.TAG, data);

View File

@ -88,7 +88,7 @@ public class FragmentMessages extends FragmentEx {
private SearchState searchState = SearchState.Reset;
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 SEARCH_PAGE_SIZE = 10;