91 lines
3.2 KiB
Java
91 lines
3.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.res.AssetManager;
|
||
|
import com.google.gson.Gson;
|
||
|
import java.io.InputStream;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.List;
|
||
|
import o.PRA;
|
||
|
|
||
|
/* renamed from: o.fqx, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C14321fqx implements pgX {
|
||
|
private final AssetManager a;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C14321fqx(AssetManager assetManager) {
|
||
|
this.a = assetManager;
|
||
|
}
|
||
|
|
||
|
@Override // o.pgX
|
||
|
@Deprecated
|
||
|
public final AbstractC13163fSk<zwR> d() {
|
||
|
zwR zwr = new zwR();
|
||
|
Gson gson = new Gson();
|
||
|
try {
|
||
|
InputStream open = this.a.open("location/scb_fasteasy_country_list.json");
|
||
|
try {
|
||
|
byte[] bArr = new byte[open.available()];
|
||
|
int read = open.read(bArr);
|
||
|
if (open != null) {
|
||
|
open.close();
|
||
|
}
|
||
|
ZRJ zrj = read > 0 ? (ZRJ) gson.fromJson(new String(bArr, StandardCharsets.UTF_8), ZRJ.class) : null;
|
||
|
if (zrj != null) {
|
||
|
List<cHC> list = zrj.d;
|
||
|
C14957gcv.e(list, "");
|
||
|
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
|
||
|
for (cHC chc : list) {
|
||
|
EFH a = EFH.a();
|
||
|
a.a = chc.a;
|
||
|
a.d = chc.c;
|
||
|
a.b = chc.b;
|
||
|
C14957gcv.d(a, "");
|
||
|
arrayList.add(a);
|
||
|
}
|
||
|
List<EFH> d = C14881gav.d((Iterable) arrayList);
|
||
|
zwR zwr2 = new zwR();
|
||
|
zwr2.a = d;
|
||
|
zwr = zwr2;
|
||
|
}
|
||
|
} finally {
|
||
|
}
|
||
|
} catch (Exception e) {
|
||
|
guQ.a(e);
|
||
|
}
|
||
|
return AbstractC13163fSk.just(zwr);
|
||
|
}
|
||
|
|
||
|
@Override // o.pgX
|
||
|
public final AbstractC13175fSw<List<C1259ZbO>> c() {
|
||
|
Collection arrayList = new ArrayList();
|
||
|
Gson gson = new Gson();
|
||
|
try {
|
||
|
InputStream open = this.a.open("location/scb_fasteasy_country_list.json");
|
||
|
try {
|
||
|
byte[] bArr = new byte[open.available()];
|
||
|
int read = open.read(bArr);
|
||
|
if (open != null) {
|
||
|
open.close();
|
||
|
}
|
||
|
if (read > 0) {
|
||
|
YKU yku = new YKU(((C13451faa) gson.fromJson(new String(bArr, StandardCharsets.UTF_8), C13451faa.class)).c);
|
||
|
arrayList = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.CVa
|
||
|
@Override // o.InterfaceC1244Ytw
|
||
|
public final Object d(Object obj) {
|
||
|
TLw tLw = (TLw) obj;
|
||
|
return new C1259ZbO(tLw.b, new Urh(tLw.e, tLw.c));
|
||
|
}
|
||
|
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
|
||
|
}
|
||
|
} finally {
|
||
|
}
|
||
|
} catch (Exception e) {
|
||
|
guQ.a(e);
|
||
|
}
|
||
|
return AbstractC13175fSw.d(arrayList);
|
||
|
}
|
||
|
}
|