58 lines
2.1 KiB
Java
58 lines
2.1 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import java.util.UUID;
|
||
|
|
||
|
/* renamed from: o.vuW, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17343vuW implements ZTj {
|
||
|
private final trQ a;
|
||
|
private final SharedPreferences b;
|
||
|
private final DpO c;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C17343vuW(SharedPreferences sharedPreferences, DpO dpO, trQ trq) {
|
||
|
this.b = sharedPreferences;
|
||
|
this.c = dpO;
|
||
|
this.a = trq;
|
||
|
}
|
||
|
|
||
|
@Override // o.ZTj
|
||
|
public final AbstractC13163fSk<gtZ> b() {
|
||
|
String string = this.b.getString("randomDeviceId", UUID.randomUUID().toString());
|
||
|
String string2 = this.b.getString("com.scb.phone.pref.key.PHONE_NUMBER", null);
|
||
|
boolean z = this.c.d.getBoolean("com.scb.phone.pref.key.ROOTED", false);
|
||
|
int i = this.b.getInt("environmentForDev", 0);
|
||
|
boolean z2 = this.b.getBoolean("ENVIRONMENT_SELECTOR", false);
|
||
|
gtZ gtz = new gtZ();
|
||
|
gtz.c = string;
|
||
|
gtz.a = string2;
|
||
|
gtz.d = i;
|
||
|
gtz.b = z;
|
||
|
gtz.f = z2;
|
||
|
return AbstractC13163fSk.just(gtz);
|
||
|
}
|
||
|
|
||
|
@Override // o.ZTj
|
||
|
public final AbstractC13163fSk<Boolean> c(C6476cU c6476cU) {
|
||
|
SharedPreferences.Editor edit = this.b.edit();
|
||
|
edit.putString("randomDeviceId", c6476cU.c).putString("deviceModel", c6476cU.d).putInt("environmentForDev", c6476cU.g >= 0 ? c6476cU.g : 0).putString("com.scb.phone.pref.key.PHONE_NUMBER", c6476cU.h).apply();
|
||
|
if (!this.b.getBoolean("IS_AUTOMATE_TESTING", false)) {
|
||
|
edit.putString("BASE_URL", c6476cU.b).putString("BASE_ASSETS_URL", c6476cU.e).putString("BASE_STATIC_URL", c6476cU.a).apply();
|
||
|
}
|
||
|
this.c.d.edit().putBoolean("com.scb.phone.pref.key.ROOTED", c6476cU.j).apply();
|
||
|
this.a.a(c6476cU.f);
|
||
|
return AbstractC13163fSk.just(Boolean.TRUE);
|
||
|
}
|
||
|
|
||
|
@Override // o.ZTj
|
||
|
public final boolean e() {
|
||
|
return this.b.getBoolean("SHOW_INPUT_DIALOG", false);
|
||
|
}
|
||
|
|
||
|
@Override // o.ZTj
|
||
|
public final void d() {
|
||
|
this.b.edit().putBoolean("SHOW_INPUT_DIALOG", false).apply();
|
||
|
}
|
||
|
}
|