package kotlinx.coroutines.android;

import android.os.Looper;
import f.i;
import g.a.n2.s;
import g.a.y1;
import java.util.List;

/* JADX INFO: compiled from: HandlerDispatcher.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class AndroidDispatcherFactory implements s {
    /* JADX WARN: Multi-variable type inference failed */
    @Override // g.a.n2.s
    public y1 createDispatcher(List<? extends s> list) {
        Looper mainLooper = Looper.getMainLooper();
        if (mainLooper == null) {
            throw new IllegalStateException("The main looper is not available");
        }
        return new a(c.a(mainLooper, true), null, 2, 0 == true ? 1 : 0);
    }

    @Override // g.a.n2.s
    public int getLoadPriority() {
        return 1073741823;
    }

    @Override // g.a.n2.s
    public String hintOnError() {
        return "For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used";
    }
}
