45 lines
1.5 KiB
Java
45 lines
1.5 KiB
Java
package s.a;
|
|
|
|
import c.q.a.k.a;
|
|
import d0.w.d;
|
|
import kotlin.coroutines.CoroutineContext;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
/* compiled from: CoroutineContext.kt */
|
|
public final class x {
|
|
public static final boolean a;
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:12:0x0028, code lost:
|
|
if (r0.equals("on") != false) goto L_0x0033;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:14:0x0031, code lost:
|
|
if (r0.equals("") != false) goto L_0x0033;
|
|
*/
|
|
static {
|
|
boolean z2;
|
|
String V = a.V("kotlinx.coroutines.scheduler");
|
|
if (V != null) {
|
|
int hashCode = V.hashCode();
|
|
if (hashCode != 0) {
|
|
if (hashCode != 3551) {
|
|
if (hashCode == 109935 && V.equals("off")) {
|
|
z2 = false;
|
|
a = z2;
|
|
}
|
|
}
|
|
}
|
|
throw new IllegalStateException(("System property 'kotlinx.coroutines.scheduler' has unrecognized value '" + V + '\'').toString());
|
|
}
|
|
z2 = true;
|
|
a = z2;
|
|
}
|
|
|
|
public static final CoroutineContext a(CoroutineScope coroutineScope, CoroutineContext coroutineContext) {
|
|
CoroutineContext plus = coroutineScope.getCoroutineContext().plus(coroutineContext);
|
|
z zVar = j0.a;
|
|
if (plus == zVar) {
|
|
return plus;
|
|
}
|
|
int i = d.e;
|
|
return plus.get(d.b.a) == null ? plus.plus(zVar) : plus;
|
|
}
|
|
}
|