148 lines
4.4 KiB
Java
148 lines
4.4 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.text.TextUtils;
|
||
|
import com.kofax.kmc.kut.utilities.Licensing;
|
||
|
import java.util.HashSet;
|
||
|
import java.util.Objects;
|
||
|
import java.util.Set;
|
||
|
import o.AbstractC1958aTW;
|
||
|
import o.DiG;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class PFX implements InterfaceC3521azC {
|
||
|
private final C0495Hxb a;
|
||
|
private final UJM b;
|
||
|
final C17519xTA c;
|
||
|
final SharedPreferences d;
|
||
|
private final YWN e;
|
||
|
private final TDT h;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public PFX(C0495Hxb c0495Hxb, UJM ujm, C17519xTA c17519xTA, SharedPreferences sharedPreferences, TDT tdt, YWN ywn) {
|
||
|
this.a = c0495Hxb;
|
||
|
this.b = ujm;
|
||
|
this.c = c17519xTA;
|
||
|
this.d = sharedPreferences;
|
||
|
this.h = tdt;
|
||
|
this.e = ywn;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final AbstractC13163fSk<C8064dAG> e(String str) {
|
||
|
C15571guL d = this.e.d(str);
|
||
|
C0495Hxb c0495Hxb = this.a;
|
||
|
SYD syd = new SYD("82", d.c, this.d.getString("USER_MODE", gHK.INDIVIDUAL.mode));
|
||
|
String str2 = d.d;
|
||
|
C14957gcv.e(syd, "");
|
||
|
C14957gcv.e(str2, "");
|
||
|
DiG.Sts sts = DiG.a;
|
||
|
DiG.Sts.d(AbstractC1958aTW.zJl.c.a);
|
||
|
AbstractC13163fSk<hGb> appConfig = c0495Hxb.e.getAppConfig(syd, str2);
|
||
|
UJM ujm = this.b;
|
||
|
Objects.requireNonNull(ujm);
|
||
|
return appConfig.map(new TGy(ujm)).doOnNext(new wKP(this)).doFinally(new Cbf());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final AbstractC13163fSk<C8064dAG> b() {
|
||
|
C0495Hxb c0495Hxb = this.a;
|
||
|
SYD syd = new SYD("82", null, this.d.getString("USER_MODE", gHK.INDIVIDUAL.mode));
|
||
|
C14957gcv.e(syd, "");
|
||
|
DiG.Sts sts = DiG.a;
|
||
|
DiG.Sts.d(AbstractC1958aTW.zJl.c.a);
|
||
|
AbstractC13163fSk<hGb> appConfigEtf = c0495Hxb.e.getAppConfigEtf(syd);
|
||
|
UJM ujm = this.b;
|
||
|
Objects.requireNonNull(ujm);
|
||
|
return appConfigEtf.map(new TGy(ujm)).doOnNext(new wKP(this)).doFinally(new Cbf());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean f() {
|
||
|
if (this.c.a() == null || this.c.a().q == null) {
|
||
|
return true;
|
||
|
}
|
||
|
return C15602gz.d() - this.d.getLong("com.scb.phone.PREF_KEY_LAST_RECEIVE_CONFIG_TIME", 0L) >= this.c.a().q.a * 60000;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final C8064dAG a() {
|
||
|
C8064dAG a = this.c.a();
|
||
|
if (a == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String str = a.y;
|
||
|
if (str != null) {
|
||
|
Licensing.setMobileSDKLicense(str);
|
||
|
}
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean o() {
|
||
|
return this.c.c.edit().putString("com.scb.phone.PREK_KEY_APP_CONFIG", null).commit();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final Set<String> d() {
|
||
|
return this.d.getStringSet("ADS_ID_KEY", new HashSet());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final void a(String str) {
|
||
|
if (str == null || TextUtils.isEmpty(str)) {
|
||
|
return;
|
||
|
}
|
||
|
SharedPreferences.Editor edit = this.d.edit();
|
||
|
Set<String> stringSet = this.d.getStringSet("ADS_ID_KEY", new HashSet());
|
||
|
stringSet.add(str);
|
||
|
edit.putStringSet("ADS_ID_KEY", stringSet).apply();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final void b(String str) {
|
||
|
if (str == null || TextUtils.isEmpty(str)) {
|
||
|
return;
|
||
|
}
|
||
|
SharedPreferences.Editor edit = this.d.edit();
|
||
|
Set<String> stringSet = this.d.getStringSet("SUMMARY_ADS_ID_KEY", new HashSet());
|
||
|
stringSet.add(str);
|
||
|
edit.putStringSet("SUMMARY_ADS_ID_KEY", stringSet).apply();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean d(String str) {
|
||
|
return this.d.getStringSet("SUMMARY_ADS_ID_KEY", new HashSet()).contains(str);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean h() {
|
||
|
return this.c.a().r.t;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean g() {
|
||
|
return this.c.a().r.ad;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean j() {
|
||
|
return this.c.a().r.Z;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean c() {
|
||
|
return this.c.a().r.n;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean e() {
|
||
|
return this.c.e;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC3521azC
|
||
|
public final boolean i() {
|
||
|
return this.h.m;
|
||
|
}
|
||
|
}
|