discord-jadx/app/src/main/java/c/d/a/a/w.java

63 lines
2.1 KiB
Java

package c.d.a.a;
import android.os.Bundle;
import c.i.a.f.h.n.a;
import c.i.a.f.h.n.d;
import com.android.billingclient.api.BillingResult;
import java.util.concurrent.Callable;
/* compiled from: com.android.billingclient:billing@@3.0.3 */
public final class w implements Callable<Void> {
public final /* synthetic */ c i;
public final /* synthetic */ d j;
public final /* synthetic */ a k;
public w(a aVar, c cVar, d dVar) {
this.k = aVar;
this.i = cVar;
this.j = dVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // java.util.concurrent.Callable
public final Void call() throws Exception {
int i;
String str;
a aVar = this.k;
c cVar = this.i;
d dVar = this.j;
String str2 = cVar.a;
try {
String valueOf = String.valueOf(str2);
a.a("BillingClient", valueOf.length() != 0 ? "Consuming purchase with token: ".concat(valueOf) : new String("Consuming purchase with token: "));
if (aVar.l) {
d dVar2 = aVar.f;
String packageName = aVar.e.getPackageName();
boolean z2 = aVar.l;
String str3 = aVar.b;
Bundle bundle = new Bundle();
if (z2) {
bundle.putString("playBillingLibraryVersion", str3);
}
Bundle o0 = dVar2.o0(9, packageName, str2, bundle);
i = o0.getInt("RESPONSE_CODE");
str = a.e(o0, "BillingClient");
} else {
i = aVar.f.Y(3, aVar.e.getPackageName(), str2);
str = "";
}
BillingResult billingResult = new BillingResult();
billingResult.a = i;
billingResult.b = str;
if (i == 0) {
aVar.h(new a0(dVar, billingResult, str2));
return null;
}
aVar.h(new b0(i, dVar, billingResult, str2));
return null;
} catch (Exception e) {
aVar.h(new c0(e, dVar, str2));
return null;
}
}
}