what-the-bank/sources/com/kofax/mobile/sdk/w/ao.java

55 lines
1.7 KiB
Java

package com.kofax.mobile.sdk.w;
import android.graphics.Bitmap;
import bolts.CancellationToken;
import com.kofax.mobile.sdk.extract.id.DataField;
import com.kofax.mobile.sdk.extract.id.IdExtractionParameters;
import com.kofax.mobile.sdk.extract.id.ImageField;
import java.util.List;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class ao extends ae {
public static final String Qy = "Photo";
public static final String Qz = "Signature";
private final com.kofax.mobile.sdk._internal.extraction.id.e Ls;
private final a QA;
/* loaded from: classes3.dex */
public interface a {
Bitmap F(com.kofax.mobile.sdk.e.a aVar);
List<DataField> G(com.kofax.mobile.sdk.e.a aVar);
}
@Override // com.kofax.mobile.sdk.w.ae, com.kofax.mobile.sdk.e.c
public /* bridge */ /* synthetic */ void a(Object obj, CancellationToken cancellationToken) {
super.a(obj, cancellationToken);
}
@InterfaceC13391fZD
public ao(a aVar, com.kofax.mobile.sdk._internal.extraction.id.e eVar) {
this.QA = aVar;
this.Ls = eVar;
}
@Override // com.kofax.mobile.sdk.w.ae
public void a(com.kofax.mobile.sdk.e.a aVar) {
IdExtractionParameters hq = aVar.hq();
aVar.a(a(Qy, hq.getExtractFaceImage(), aVar));
aVar.b(a(Qz, hq.getExtractSignatureImage(), aVar));
}
public ImageField a(String str, boolean z, com.kofax.mobile.sdk.e.a aVar) {
DataField a2;
List<DataField> G = this.QA.G(aVar);
if (G != null && (a2 = this.Ls.a(str, G)) != null) {
G.remove(a2);
if (z) {
return ImageField.fromDataField(a2, this.QA.F(aVar));
}
}
return null;
}
}