package o; import android.os.Handler; import android.os.Looper; import io.flutter.plugin.common.MethodChannel; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /* loaded from: classes.dex */ public abstract class OAd { private static final ExecutorService d; private static final Handler e; private MethodChannel.Result a; private boolean b; /* loaded from: classes.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public OAd(MethodChannel.Result result) { this.a = result; } static { new LWm((byte) 0); e = new Handler(Looper.getMainLooper()); ExecutorService newFixedThreadPool = Executors.newFixedThreadPool(8); C14957gcv.c(newFixedThreadPool, ""); d = newFixedThreadPool; } public final void c(final Object obj) { if (this.b) { return; } this.b = true; final MethodChannel.Result result = this.a; this.a = null; e.post(new Runnable(result, obj) { // from class: o.gPr private Object d; private MethodChannel.Result e; @Override // java.lang.Runnable public final void run() { OAd.d(this.e, this.d); } { this.e = result; this.d = obj; } }); } public static /* synthetic */ void d(MethodChannel.Result result, Object obj) { if (result != null) { result.success(obj); } } }