59 lines
2.0 KiB
Java
59 lines
2.0 KiB
Java
|
package o;
|
||
|
|
||
|
import android.app.PendingIntent;
|
||
|
import android.os.Build;
|
||
|
import android.os.Bundle;
|
||
|
import android.util.Log;
|
||
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
||
|
import com.google.android.play.core.integrity.IntegrityServiceException;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class PXs extends QhU {
|
||
|
private final C16916sOz c = new C16916sOz("OnRequestIntegrityTokenCallback");
|
||
|
private final TaskCompletionSource d;
|
||
|
private EOf e;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public PXs(EOf eOf, TaskCompletionSource taskCompletionSource) {
|
||
|
this.e = eOf;
|
||
|
this.d = taskCompletionSource;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12139esa
|
||
|
public final void NG_(Bundle bundle) {
|
||
|
PendingIntent pendingIntent;
|
||
|
C16741qpn c16741qpn = this.e.c;
|
||
|
TaskCompletionSource taskCompletionSource = this.d;
|
||
|
synchronized (c16741qpn.g) {
|
||
|
c16741qpn.e.remove(taskCompletionSource);
|
||
|
}
|
||
|
c16741qpn.NB_().post(new VvN(c16741qpn));
|
||
|
C16916sOz c16916sOz = this.c;
|
||
|
Object[] objArr = new Object[0];
|
||
|
if (Log.isLoggable("PlayCore", 4)) {
|
||
|
C16916sOz.c(c16916sOz.d, "onRequestIntegrityToken", objArr);
|
||
|
}
|
||
|
int i = bundle.getInt("error");
|
||
|
if (i != 0) {
|
||
|
this.d.trySetException(new IntegrityServiceException(i, null));
|
||
|
return;
|
||
|
}
|
||
|
String string = bundle.getString("token");
|
||
|
if (string == null) {
|
||
|
this.d.trySetException(new IntegrityServiceException(-100, null));
|
||
|
return;
|
||
|
}
|
||
|
if (Build.VERSION.SDK_INT >= 33) {
|
||
|
pendingIntent = (PendingIntent) bundle.getParcelable("dialog.intent", PendingIntent.class);
|
||
|
} else {
|
||
|
pendingIntent = (PendingIntent) bundle.getParcelable("dialog.intent");
|
||
|
}
|
||
|
TaskCompletionSource taskCompletionSource2 = this.d;
|
||
|
LGu lGu = new LGu();
|
||
|
lGu.c(string);
|
||
|
lGu.d(this.c);
|
||
|
lGu.a(pendingIntent);
|
||
|
taskCompletionSource2.trySetResult(lGu.e());
|
||
|
}
|
||
|
}
|