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

168 lines
4.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import java.util.ArrayList;
import java.util.List;
import o.ZI;
import o.aOE;
import o.wRi;
/* loaded from: classes4.dex */
public class aOE extends ZI<cYN> {
private final C16672qHa a;
private final THK b;
private boolean c;
private final C16587pY d;
private SharedPreferences e;
private String g;
@InterfaceC13391fZD
public aOE(C16672qHa c16672qHa, THK thk, C16587pY c16587pY, C16903sI c16903sI, SharedPreferences sharedPreferences, String str) {
super(c16903sI);
this.c = false;
this.a = c16672qHa;
this.b = thk;
this.d = c16587pY;
this.e = sharedPreferences;
this.g = str;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes4.dex */
public final class IeS extends wRi.LWm<List<XCj>> {
private aOE c;
private IeS(aOE aoe) {
this.c = aoe;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final List list = (List) obj;
aOE.h(this.c);
aOE aoe = this.c;
ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.aOC
private aOE.IeS b;
private List d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((cYN) obj2).c(r0.c.d.c((List<XCj>) this.d, this.b.c.c));
}
{
this.b = this;
this.d = list;
}
};
if (aoe.f != 0) {
ieS.e(aoe.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
aOE.b(this.c, th);
}
/* synthetic */ IeS(aOE aoe, byte b) {
this(aoe);
}
}
/* loaded from: classes4.dex */
final class Sts extends wRi.LWm<Boolean> {
private boolean c;
private aOE d;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
Boolean bool = (Boolean) obj;
if (this.d.f == 0 || !Boolean.TRUE.equals(bool)) {
return;
}
aOE.j(this.d);
if (this.c) {
C16672qHa c16672qHa = this.d.a;
c16672qHa.e.c();
c16672qHa.d.a(false);
this.d.b.c.b(null);
this.d.e.edit().remove("randomDeviceId").apply();
aOE aoe = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.aOD
@Override // o.ZI.IeS
public final void e(Object obj2) {
((cYN) obj2).e();
}
};
if (aoe.f != 0) {
ieS.e(aoe.f);
return;
}
return;
}
aOE aoe2 = this.d;
aoe2.b(aoe2.c);
}
Sts(aOE aoe, boolean z) {
this.d = aoe;
this.c = z;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
aOE.a(this.d, th);
}
}
static /* synthetic */ void b(aOE aoe, Throwable th) {
if (aoe.b(th)) {
aoe.d(aoe.j.e(th));
}
}
static /* synthetic */ void h(aOE aoe) {
if (aoe.f != 0) {
aoe.f.aq_();
}
}
static /* synthetic */ void a(aOE aoe, Throwable th) {
if (aoe.b(th)) {
aoe.d(aoe.j.e(th));
}
}
static /* synthetic */ void j(aOE aoe) {
if (aoe.f != 0) {
aoe.f.ar_();
}
}
public final void e(String str, boolean z) {
if (this.f != 0) {
this.f.y();
}
ArrayList arrayList = new ArrayList();
arrayList.add(str);
this.a.e(new AkO(arrayList, this.g));
C16672qHa c16672qHa = this.a;
c16672qHa.d(c16672qHa.i, new Sts(this, z));
}
public final void b(boolean z) {
this.c = z;
if (this.f != 0) {
this.f.v();
}
this.a.b(this.e.getString("randomDeviceId", ""));
C16672qHa c16672qHa = this.a;
c16672qHa.d(c16672qHa.i, new IeS(this, (byte) 0));
}
}