332 lines
10 KiB
Java
332 lines
10 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.res.Resources;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.List;
|
||
|
import o.C0690Mh;
|
||
|
import o.C15715hv;
|
||
|
import o.C2897anK;
|
||
|
import o.ZI;
|
||
|
import o.wRi;
|
||
|
|
||
|
/* renamed from: o.anK, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C2897anK extends ZI<InterfaceC9061dcc> {
|
||
|
private final xZj a;
|
||
|
public GC b;
|
||
|
public Integer c;
|
||
|
private final C16229mY d;
|
||
|
private final C16371nn e;
|
||
|
private final C17391wQ g;
|
||
|
private final Resources h;
|
||
|
private C0437Go i;
|
||
|
private GC l;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C2897anK(C16903sI c16903sI, xZj xzj, C16229mY c16229mY, C17391wQ c17391wQ, C16371nn c16371nn, Resources resources) {
|
||
|
super(c16903sI);
|
||
|
C14957gcv.e(c16903sI, "");
|
||
|
C14957gcv.e(xzj, "");
|
||
|
C14957gcv.e(c16229mY, "");
|
||
|
C14957gcv.e(c17391wQ, "");
|
||
|
C14957gcv.e(c16371nn, "");
|
||
|
C14957gcv.e(resources, "");
|
||
|
this.a = xzj;
|
||
|
this.d = c16229mY;
|
||
|
this.g = c17391wQ;
|
||
|
this.e = c16371nn;
|
||
|
this.h = resources;
|
||
|
this.b = new GC((ArrayList<C0419Ge>) new ArrayList());
|
||
|
}
|
||
|
|
||
|
public static FZ d(boolean z) {
|
||
|
if (z) {
|
||
|
return FZ.DEEJUNG_INSTALLMENT_NEW;
|
||
|
}
|
||
|
return FZ.DEEJUNG_INSTALLMENT;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.anK$IeS */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class IeS extends wRi.LWm<CRB> {
|
||
|
private C2897anK c;
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final /* synthetic */ void onNext(Object obj) {
|
||
|
CRB crb = (CRB) obj;
|
||
|
C14957gcv.e(crb, "");
|
||
|
C2897anK c2897anK = this.c;
|
||
|
c2897anK.i = C16371nn.e(c2897anK.e, crb.e, this.c.b);
|
||
|
final C2897anK c2897anK2 = this.c;
|
||
|
ZI.IeS ieS = new ZI.IeS(c2897anK2) { // from class: o.anU
|
||
|
private C2897anK c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj2) {
|
||
|
C2897anK.IeS.a(this.c, (InterfaceC9061dcc) obj2);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = c2897anK2;
|
||
|
}
|
||
|
};
|
||
|
if (c2897anK2.f != 0) {
|
||
|
ieS.e(c2897anK2.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public IeS(C2897anK c2897anK) {
|
||
|
this.c = c2897anK;
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
C2897anK.g(this.c);
|
||
|
}
|
||
|
|
||
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
||
|
public final void onError(final Throwable th) {
|
||
|
C14957gcv.e(th, "");
|
||
|
final C2897anK c2897anK = this.c;
|
||
|
ZI.IeS ieS = new ZI.IeS(c2897anK, th) { // from class: o.anN
|
||
|
private Throwable a;
|
||
|
private C2897anK d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C2897anK.IeS.d(this.d, this.a, (InterfaceC9061dcc) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c2897anK;
|
||
|
this.a = th;
|
||
|
}
|
||
|
};
|
||
|
if (c2897anK.f != 0) {
|
||
|
ieS.e(c2897anK.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(C2897anK c2897anK, InterfaceC9061dcc interfaceC9061dcc) {
|
||
|
C14957gcv.e(c2897anK, "");
|
||
|
interfaceC9061dcc.d(c2897anK.i);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(C2897anK c2897anK, Throwable th, InterfaceC9061dcc interfaceC9061dcc) {
|
||
|
C14957gcv.e(c2897anK, "");
|
||
|
C14957gcv.e(th, "");
|
||
|
C2897anK.g(c2897anK);
|
||
|
C0693Mj d = c2897anK.j.d(th, C0690Mh.IeS.JUST_DISMISS);
|
||
|
if (c2897anK.b(th, "3003") || c2897anK.b(th, "3018")) {
|
||
|
c2897anK.i = c2897anK.e.d((List<YFu>) null, c2897anK.b, d);
|
||
|
interfaceC9061dcc.d(c2897anK.i);
|
||
|
} else {
|
||
|
interfaceC9061dcc.e(d);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final C0693Mj d() {
|
||
|
Integer num = this.c;
|
||
|
C0693Mj c = this.j.c(this.h.getString(C15715hv.tOB.deejung_transaction_limit_error_title), this.h.getString(C15715hv.tOB.deejung_transaction_limit_error_body, String.valueOf(num != null ? num.intValue() : 0)), C0690Mh.IeS.JUST_DISMISS);
|
||
|
C14957gcv.c(c, "");
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
@Override // o.ZI
|
||
|
public final void w_() {
|
||
|
xZj xzj = this.a;
|
||
|
if (!xzj.h.isDisposed()) {
|
||
|
xzj.h.dispose();
|
||
|
}
|
||
|
super.w_();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.anK$LWm */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class LWm {
|
||
|
private LWm() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ LWm(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(C2897anK c2897anK, InterfaceC9061dcc interfaceC9061dcc) {
|
||
|
C14957gcv.e(c2897anK, "");
|
||
|
interfaceC9061dcc.d(c2897anK.i);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(C2897anK c2897anK) {
|
||
|
C14957gcv.e(c2897anK, "");
|
||
|
c2897anK.d(c2897anK.d());
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(C2897anK c2897anK, InterfaceC9061dcc interfaceC9061dcc) {
|
||
|
C14957gcv.e(c2897anK, "");
|
||
|
String str = (String) C6583cXR.c(new Object[]{Double.valueOf(c2897anK.b.d)}, -150997759, 150997764, (int) System.currentTimeMillis());
|
||
|
C14957gcv.c((Object) str, "");
|
||
|
interfaceC9061dcc.e(str);
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ void g(C2897anK c2897anK) {
|
||
|
if (c2897anK.f != 0) {
|
||
|
c2897anK.f.ar_();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void c() {
|
||
|
final int size = this.b.a.size();
|
||
|
if (size <= 0) {
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.anP
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9061dcc) obj).a(false);
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
}
|
||
|
} else {
|
||
|
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.anO
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9061dcc) obj).a(true);
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS2.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
if (size > 0) {
|
||
|
ZI.IeS ieS3 = new ZI.IeS(size) { // from class: o.anQ
|
||
|
private int d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9061dcc) obj).b(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = size;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS3.e(this.f);
|
||
|
}
|
||
|
} else {
|
||
|
ZI.IeS ieS4 = new ZI.IeS() { // from class: o.anM
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9061dcc) obj).b();
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS4.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
ZI.IeS ieS5 = new ZI.IeS(this) { // from class: o.anH
|
||
|
private C2897anK a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C2897anK.b(this.a, (InterfaceC9061dcc) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS5.e(this.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void c(String str, int i) {
|
||
|
C14957gcv.e(str, "");
|
||
|
GC gc = this.l;
|
||
|
boolean b = C14957gcv.b(gc != null ? gc.a : null, this.b.a);
|
||
|
if (this.b.a.size() > i) {
|
||
|
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.anI
|
||
|
private C2897anK e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C2897anK.a(this.e);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS.e(this.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (this.i != null && b) {
|
||
|
ZI.IeS ieS2 = new ZI.IeS(this) { // from class: o.anJ
|
||
|
private C2897anK d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C2897anK.c(this.d, (InterfaceC9061dcc) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS2.e(this.f);
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
this.l = new GC(this.b);
|
||
|
final C0916Rm e = this.g.e(C15715hv.tOB.plans_loader_title, C15715hv.tOB.plans_loader_desc);
|
||
|
ZI.IeS ieS3 = new ZI.IeS(e) { // from class: o.anL
|
||
|
private C0916Rm a;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9061dcc) obj).d(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = e;
|
||
|
}
|
||
|
};
|
||
|
if (this.f != 0) {
|
||
|
ieS3.e(this.f);
|
||
|
}
|
||
|
ArrayList<C0419Ge> arrayList = this.b.a;
|
||
|
C14957gcv.e(arrayList, "");
|
||
|
ArrayList<C0419Ge> arrayList2 = arrayList;
|
||
|
C14957gcv.e(arrayList2, "");
|
||
|
ArrayList arrayList3 = new ArrayList(arrayList2 instanceof Collection ? arrayList2.size() : 10);
|
||
|
for (C0419Ge c0419Ge : arrayList2) {
|
||
|
C14957gcv.e(c0419Ge, "");
|
||
|
String str2 = c0419Ge.g;
|
||
|
String str3 = c0419Ge.d;
|
||
|
String str4 = c0419Ge.e;
|
||
|
String str5 = c0419Ge.c;
|
||
|
Double c = C6583cXR.c(c0419Ge.h);
|
||
|
C14957gcv.c(c, "");
|
||
|
arrayList3.add(new umX(str2, str3, str4, str5, C6583cXR.c(c.doubleValue()), c0419Ge.a, c0419Ge.f));
|
||
|
}
|
||
|
this.a.b(new C16022kYy(str, arrayList3));
|
||
|
xZj xzj = this.a;
|
||
|
xzj.d(xzj.i, new IeS(this));
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new LWm((byte) 0);
|
||
|
}
|
||
|
}
|