Fixed simple task thread priority

This commit is contained in:
M66B
2018-08-22 13:40:14 +00:00
parent 651230b218
commit 4830222a7a

View File

@@ -52,8 +52,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
static {
handlerThread = new HandlerThread("SimpleTask");
handlerThread.setPriority(THREAD_PRIORITY_BACKGROUND);
handlerThread.start();
handlerThread.setPriority(THREAD_PRIORITY_BACKGROUND);
handler = new Handler(handlerThread.getLooper());
}