what-the-bank/sources/com/kofax/mobile/sdk/h/c.java

57 lines
2.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.h;
import bolts.Continuation;
import bolts.Task;
import com.kofax.kmc.ken.engines.data.BarCodeResult;
import com.kofax.kmc.ken.engines.data.BarCodeType;
import com.kofax.kmc.ken.engines.data.Image;
import java.util.Set;
import o.InterfaceC13390fZB;
import o.InterfaceC13391fZD;
import o.gjJ;
/* loaded from: classes3.dex */
public class c implements com.kofax.mobile.sdk.a.b {
private final com.kofax.mobile.sdk.a.a yI;
private final com.kofax.mobile.sdk.a.a yJ;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public c(@InterfaceC13390fZB(a = "ATALABAR") com.kofax.mobile.sdk.a.a aVar, @InterfaceC13390fZB(a = "MANATEE") com.kofax.mobile.sdk.a.a aVar2) {
this.yI = aVar;
this.yJ = aVar2;
}
@Override // com.kofax.mobile.sdk.a.b
public Task<BarCodeResult> a(Image image, String str, String str2, Set<BarCodeType> set) {
if (image == null || set.isEmpty()) {
return Task.forResult((Object) null);
}
return this.yI.a(image, set).continueWithTask(new Continuation<BarCodeResult, Task<BarCodeResult>>(this, image, set) { // from class: com.kofax.mobile.sdk.h.c.1
final Image yB;
final Set yC;
final c yK;
{
this.yK = this;
this.yB = image;
this.yC = set;
}
/* renamed from: then, reason: collision with other method in class */
public /* bridge */ /* synthetic */ Object m312then(Task task) throws Exception {
return then((Task<BarCodeResult>) task);
}
public Task<BarCodeResult> then(Task<BarCodeResult> task) throws Exception {
return a(task) ? this.yK.yJ.a(this.yB, this.yC) : task;
}
private boolean a(Task<BarCodeResult> task) {
BarCodeResult barCodeResult = (BarCodeResult) task.getResult();
return task.isFaulted() || barCodeResult == null || gjJ.b((CharSequence) barCodeResult.getValue());
}
});
}
}