what-the-bank/sources/com/kofax/mobile/sdk/y/v.java

56 lines
1.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.y;
import bolts.Continuation;
import bolts.Task;
import com.kofax.BuildConfig;
import o.gjZ;
/* loaded from: classes3.dex */
public class v<T> {
/* loaded from: classes3.dex */
public interface a<T> {
T run();
}
public T a(String str, a<T> aVar) {
gjZ gjz = new gjZ();
try {
gjz.a();
return aVar.run();
} finally {
gjz.e();
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(": ");
sb.append(gjz.toString());
com.kofax.mobile.sdk._internal.k.b(BuildConfig.TIMING_TAG, sb.toString());
}
}
public Task<T> a(String str, Task<T> task) {
return task.continueWithTask(new Continuation<T, Task<T>>(this, gjZ.d(), str) { // from class: com.kofax.mobile.sdk.y.v.1
final gjZ SC;
final String SD;
final v SE;
{
this.SE = this;
this.SC = r2;
this.SD = str;
}
/* renamed from: then, reason: merged with bridge method [inline-methods] */
public Task<T> m324then(Task<T> task2) throws Exception {
this.SC.e();
StringBuilder sb = new StringBuilder();
sb.append(this.SD);
sb.append(": ");
sb.append(this.SC);
com.kofax.mobile.sdk._internal.k.b(BuildConfig.TIMING_TAG, sb.toString());
return task2;
}
});
}
}