Run all executors in background

pull/125/head
M66B 6 years ago
parent 4e5eecfece
commit 7c6841b936

@ -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);

@ -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;

Loading…
Cancel
Save