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 a(Image image, String str, String str2, Set set) { if (image == null || set.isEmpty()) { return Task.forResult((Object) null); } return this.yI.a(image, set).continueWithTask(new Continuation>(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) task); } public Task then(Task task) throws Exception { return a(task) ? this.yK.yJ.a(this.yB, this.yC) : task; } private boolean a(Task task) { BarCodeResult barCodeResult = (BarCodeResult) task.getResult(); return task.isFaulted() || barCodeResult == null || gjJ.b((CharSequence) barCodeResult.getValue()); } }); } }