what-the-bank/sources/com/facetec/sdk/cy.java

49 lines
1.3 KiB
Java

package com.facetec.sdk;
import android.os.AsyncTask;
/* loaded from: classes.dex */
final class cy extends AsyncTask<Void, Void, Void> {
private Runnable a = null;
private final Runnable e;
@Override // android.os.AsyncTask
protected final /* synthetic */ Void doInBackground(Void[] voidArr) {
this.e.run();
return null;
}
@Override // android.os.AsyncTask
protected final /* synthetic */ void onPostExecute(Void r1) {
super.onPostExecute(r1);
Runnable runnable = this.a;
if (runnable != null) {
runnable.run();
}
}
private cy(Runnable runnable) {
this.e = runnable;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static cy c(Runnable runnable) {
cy cyVar = new cy(runnable);
cyVar.executeOnExecutor(SERIAL_EXECUTOR, new Void[0]);
return cyVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static cy b(Runnable runnable) {
cy cyVar = new cy(runnable);
cyVar.executeOnExecutor(THREAD_POOL_EXECUTOR, new Void[0]);
return cyVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final cy d(Runnable runnable) {
this.a = runnable;
return this;
}
}