40 lines
1.9 KiB
Java
40 lines
1.9 KiB
Java
package com.discord.widgets.settings.billing;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.AssetManager;
|
|
import com.discord.widgets.settings.billing.WidgetPaymentSourceEditDialog;
|
|
import com.google.gson.Gson;
|
|
import d0.y.b;
|
|
import d0.z.d.o;
|
|
import java.io.InputStreamReader;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetPaymentSourceEditDialog.kt */
|
|
public final class WidgetPaymentSourceEditDialog$usStates$2 extends o implements Function0<WidgetPaymentSourceEditDialog.StateEntry[]> {
|
|
public final /* synthetic */ WidgetPaymentSourceEditDialog this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetPaymentSourceEditDialog$usStates$2(WidgetPaymentSourceEditDialog widgetPaymentSourceEditDialog) {
|
|
super(0);
|
|
this.this$0 = widgetPaymentSourceEditDialog;
|
|
}
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:14:0x0031, code lost:
|
|
r2 = move-exception;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:15:0x0032, code lost:
|
|
d0.y.b.closeFinally(r0, r1);
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:16:0x0035, code lost:
|
|
throw r2;
|
|
*/
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final WidgetPaymentSourceEditDialog.StateEntry[] mo1invoke() {
|
|
AssetManager assets;
|
|
Context context = this.this$0.getContext();
|
|
InputStreamReader inputStreamReader = new InputStreamReader((context == null || (assets = context.getAssets()) == null) ? null : assets.open("data/states.json"), "UTF-8");
|
|
WidgetPaymentSourceEditDialog.StateEntry[] stateEntryArr = (WidgetPaymentSourceEditDialog.StateEntry[]) new Gson().e(inputStreamReader, WidgetPaymentSourceEditDialog.StateEntry[].class);
|
|
b.closeFinally(inputStreamReader, null);
|
|
return stateEntryArr;
|
|
}
|
|
}
|