You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
package kotlinx.coroutines.android;
|
|
|
|
import android.os.Looper;
|
|
import java.util.List;
|
|
import kotlinx.coroutines.internal.InterfaceC1376o;
|
|
import p060t1.AbstractC1669d1;
|
|
import p063u1.C1747a;
|
|
import p063u1.C1749c;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class AndroidDispatcherFactory implements InterfaceC1376o {
|
|
@Override // kotlinx.coroutines.internal.InterfaceC1376o
|
|
public AbstractC1669d1 createDispatcher(List<? extends InterfaceC1376o> list) {
|
|
Looper mainLooper = Looper.getMainLooper();
|
|
if (mainLooper != null) {
|
|
return new C1747a(C1749c.m473a(mainLooper, true), null, 2, null);
|
|
}
|
|
throw new IllegalStateException("The main looper is not available");
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.internal.InterfaceC1376o
|
|
public int getLoadPriority() {
|
|
return 1073741823;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.internal.InterfaceC1376o
|
|
public String hintOnError() {
|
|
return "For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used";
|
|
}
|
|
} |