110 lines
3.9 KiB
Java
110 lines
3.9 KiB
Java
package c.d.a.a;
|
|
|
|
import c.i.a.f.h.n.a;
|
|
import java.util.concurrent.Callable;
|
|
/* compiled from: com.android.billingclient:billing@@3.0.3 */
|
|
public final class m implements Callable<Void> {
|
|
public final /* synthetic */ o i;
|
|
|
|
public m(o oVar) {
|
|
this.i = oVar;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX WARNING: Removed duplicated region for block: B:71:0x00d8 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:72:0x00e0 */
|
|
@Override // java.util.concurrent.Callable
|
|
public final /* synthetic */ Void call() throws Exception {
|
|
int i;
|
|
synchronized (this.i.i) {
|
|
o oVar = this.i;
|
|
if (!oVar.j) {
|
|
int i2 = 3;
|
|
try {
|
|
String packageName = oVar.l.e.getPackageName();
|
|
int i3 = 16;
|
|
i = 3;
|
|
while (true) {
|
|
if (i3 < 3) {
|
|
i3 = 0;
|
|
break;
|
|
}
|
|
try {
|
|
i = this.i.l.f.o(i3, packageName, "subs");
|
|
if (i == 0) {
|
|
break;
|
|
}
|
|
i3--;
|
|
} catch (Exception unused) {
|
|
i2 = i;
|
|
a.b("BillingClient", "Exception while checking if billing is supported; try to reconnect");
|
|
a aVar = this.i.l;
|
|
aVar.a = 0;
|
|
aVar.f = null;
|
|
i = i2;
|
|
if (i == 0) {
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
a aVar2 = this.i.l;
|
|
boolean z2 = true;
|
|
aVar2.i = i3 >= 5;
|
|
aVar2.h = i3 >= 3;
|
|
if (i3 < 3) {
|
|
a.a("BillingClient", "In-app billing API does not support subscription on this device.");
|
|
}
|
|
int i4 = 16;
|
|
while (true) {
|
|
if (i4 < 3) {
|
|
break;
|
|
}
|
|
i = this.i.l.f.o(i4, packageName, "inapp");
|
|
if (i == 0) {
|
|
this.i.l.j = i4;
|
|
break;
|
|
}
|
|
i4--;
|
|
}
|
|
a aVar3 = this.i.l;
|
|
int i5 = aVar3.j;
|
|
aVar3.p = i5 >= 16;
|
|
aVar3.o = i5 >= 15;
|
|
aVar3.n = i5 >= 14;
|
|
aVar3.m = i5 >= 10;
|
|
aVar3.l = i5 >= 9;
|
|
if (i5 < 6) {
|
|
z2 = false;
|
|
}
|
|
aVar3.k = z2;
|
|
if (i5 < 3) {
|
|
a.b("BillingClient", "In-app billing API version 3 is not supported on this device.");
|
|
}
|
|
if (i == 0) {
|
|
this.i.l.a = 2;
|
|
} else {
|
|
a aVar4 = this.i.l;
|
|
aVar4.a = 0;
|
|
aVar4.f = null;
|
|
}
|
|
} catch (Exception unused2) {
|
|
a.b("BillingClient", "Exception while checking if billing is supported; try to reconnect");
|
|
a aVar = this.i.l;
|
|
aVar.a = 0;
|
|
aVar.f = null;
|
|
i = i2;
|
|
if (i == 0) {
|
|
}
|
|
return null;
|
|
}
|
|
if (i == 0) {
|
|
o.a(this.i, q.i);
|
|
} else {
|
|
o.a(this.i, q.a);
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|