what-the-bank/sources/o/uVv.java

77 lines
3.7 KiB
Java

package o;
import android.app.PendingIntent;
import android.os.Bundle;
import android.os.RemoteException;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.play.core.install.InstallException;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
/* loaded from: classes2.dex */
final class uVv extends kkm {
private OAW b;
private final String e;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public uVv(OAW oaw, TaskCompletionSource taskCompletionSource, String str) {
super(oaw, new yax("OnRequestInstallCallback"), taskCompletionSource);
this.b = oaw;
this.e = str;
}
@Override // o.kkm, o.rRu
public final void Nu_(Bundle bundle) throws RemoteException {
super.Nu_(bundle);
if (bundle.getInt("error.code", -2) != 0) {
this.c.trySetException(new InstallException(bundle.getInt("error.code", -2)));
return;
}
TaskCompletionSource taskCompletionSource = this.c;
OAW oaw = this.b;
String str = this.e;
int i = bundle.getInt("version.code", -1);
int i2 = bundle.getInt("update.availability");
int i3 = bundle.getInt("install.status", 0);
Integer valueOf = bundle.getInt("client.version.staleness", -1) == -1 ? null : Integer.valueOf(bundle.getInt("client.version.staleness"));
int i4 = bundle.getInt("in.app.update.priority", 0);
long j = bundle.getLong("bytes.downloaded");
long j2 = bundle.getLong("total.bytes.to.download");
long j3 = bundle.getLong("additional.size.required");
long e = C3296aup.e(new File(oaw.e.c.getFilesDir(), "assetpacks"));
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable("blocking.intent");
PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable("nonblocking.intent");
PendingIntent pendingIntent3 = (PendingIntent) bundle.getParcelable("blocking.destructive.intent");
PendingIntent pendingIntent4 = (PendingIntent) bundle.getParcelable("nonblocking.destructive.intent");
HashMap hashMap = new HashMap();
ArrayList<Integer> integerArrayList = bundle.getIntegerArrayList("update.precondition.failures:blocking.destructive.intent");
HashSet hashSet = new HashSet();
if (integerArrayList != null) {
hashSet.addAll(integerArrayList);
}
hashMap.put("blocking.destructive.intent", hashSet);
ArrayList<Integer> integerArrayList2 = bundle.getIntegerArrayList("update.precondition.failures:nonblocking.destructive.intent");
HashSet hashSet2 = new HashSet();
if (integerArrayList2 != null) {
hashSet2.addAll(integerArrayList2);
}
hashMap.put("nonblocking.destructive.intent", hashSet2);
ArrayList<Integer> integerArrayList3 = bundle.getIntegerArrayList("update.precondition.failures:blocking.intent");
HashSet hashSet3 = new HashSet();
if (integerArrayList3 != null) {
hashSet3.addAll(integerArrayList3);
}
hashMap.put("blocking.intent", hashSet3);
ArrayList<Integer> integerArrayList4 = bundle.getIntegerArrayList("update.precondition.failures:nonblocking.intent");
HashSet hashSet4 = new HashSet();
if (integerArrayList4 != null) {
hashSet4.addAll(integerArrayList4);
}
hashMap.put("nonblocking.intent", hashSet4);
taskCompletionSource.trySetResult(new Igp(str, i, i2, i3, valueOf, i4, j, j2, j3, e, pendingIntent, pendingIntent2, pendingIntent3, pendingIntent4, hashMap));
}
}