alexandroid/decompiled/jadx/sources/io/reactivex/rxjava3/android/schedulers/AndroidSchedulers.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

48 lines
1.6 KiB
Java

package io.reactivex.rxjava3.android.schedulers;
import android.annotation.SuppressLint;
import android.os.Handler;
import android.os.Looper;
import io.reactivex.rxjava3.android.plugins.RxAndroidPlugins;
import io.reactivex.rxjava3.core.Scheduler;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes.dex */
public final class AndroidSchedulers {
private static final Scheduler MAIN_THREAD = RxAndroidPlugins.initMainThreadScheduler(new AndroidSchedulers$$ExternalSyntheticLambda0(0));
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class MainHolder {
static final Scheduler DEFAULT = AndroidSchedulers.internalFrom(Looper.getMainLooper(), true);
private MainHolder() {
}
}
private AndroidSchedulers() {
throw new AssertionError("No instances.");
}
public static Scheduler from(Looper looper, boolean z) {
if (looper != null) {
return internalFrom(looper, z);
}
Single$$ExternalSyntheticBUOutline0.m$1("looper == null");
return null;
}
/* JADX INFO: Access modifiers changed from: private */
@SuppressLint({"NewApi"})
public static Scheduler internalFrom(Looper looper, boolean z) {
return new HandlerScheduler(new Handler(looper), z);
}
public static Scheduler mainThread() {
return RxAndroidPlugins.onMainThreadScheduler(MAIN_THREAD);
}
public static Scheduler from(Looper looper) {
return from(looper, true);
}
}