导航菜单

页面标题

页面副标题

Chaupal v3.2 - g.java 源代码

正在查看: Chaupal v3.2 应用的 g.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package nc;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.widget.AppCompatButton;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.razorpay.Checkout;
import com.razorpay.R;
import com.yupptv.ott.MainActivity;
import com.yupptv.ott.OTTApplication;
import com.yupptv.ott.enums.ScreenType;
import com.yupptv.ottsdk.enums.TenantBuildType;
import com.yupptv.ottsdk.managers.Payment.PaymentManager;
import com.yupptv.ottsdk.managers.Preferences.PreferenceManager;
import com.yupptv.ottsdk.model.Error;
import com.yupptv.ottsdk.model.User;
import com.yupptv.ottsdk.model.payments.OrderIdResponse;
import com.yupptv.ottsdk.model.payments.packagefeature.Duration;
import com.yupptv.ottsdk.model.payments.packagefeature.Package;
import com.yupptv.ottsdk.model.payments.packagefeature.PackageGeneric;
import com.yupptv.ottsdk.model.payments.packagefeature.PackageResponse;
import com.yupptv.ottsdk.model.payments.packagefeature.SupportedGateway;
import com.yupptv.ottsdk.utils.OttLog;
import hd.a;
import hd.e0;
import hd.r;
import hd.u;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import q4.t;

public class g extends com.yupptv.ott.fragments.l {
    private TextView A;
    private TextView B;
    private TextView C;
    private TextView D;
    private TextView E;
    private TextView F;
    private AppCompatButton G;
    private LinearLayout H;
    private LinearLayout I;
    private LinearLayout J;
    private LinearLayout K;
    private LinearLayout L;
    private RecyclerView M;
    private h N;
    private TextView y;
    private TextView z;
    private boolean O = false;
    private boolean P = false;
    private boolean Q = false;
    private boolean R = false;
    private List<PackageResponse> S = new ArrayList();
    private int T = -1;
    private int U = -1;
    private int V = -1;
    private String W = "";
    private String X = "";
    private String Y = "";
    List<SupportedGateway> Z = new ArrayList();
    String e0 = "";
    String f0 = "";
    String g0 = "";
    String h0 = "";
    private String i0 = "";
    private String j0 = "";
    private String k0 = "";
    private String l0 = "";
    private long m0 = 0;
    private double n0 = 0.0d;
    private String o0 = "razorpay";
    private String p0 = "";
    private String q0 = "";
    private String r0 = "";
    private String s0 = "";
    public boolean t0 = false;
    public boolean u0 = false;
    private long v0 = 60000;
    private long w0 = 0;
    private String x0 = "";
    private String y0 = "";
    final Handler z0 = new Handler();
    View.OnClickListener A0 = new a();
    public final Runnable B0 = new d();
    PaymentManager.PaymentCallback<PackageGeneric> C0 = new C0163g();

    class a implements View.OnClickListener {
        a() {
        }

        @Override
        public void onClick(View view) {
            if (view.getId() != 2131427856) {
                return;
            }
            if (g.this.U < 0) {
                Toast.makeText((Context) g.this.getActivity(), (CharSequence) g.this.getResources().getString(2131952127), 1).show();
                return;
            }
            if (!((Package) ((PackageResponse) g.this.S.get(g.this.U)).getPackageInfo().getPackages().get(g.this.V)).getSelectable().booleanValue() || ((Package) ((PackageResponse) g.this.S.get(g.this.U)).getPackageInfo().getPackages().get(g.this.V)).getIsSubscribed().booleanValue()) {
                Toast.makeText((Context) g.this.getActivity(), (CharSequence) g.this.getResources().getString(2131952127), 1).show();
                return;
            }
            g gVar = g.this;
            gVar.l0 = ((PackageResponse) gVar.S.get(g.this.U)).getPackageInfo().getMaster().getPackageType();
            g gVar2 = g.this;
            gVar2.Z0(cc.c.z0, gVar2.j0);
            if (e0.m > 0 || hd.a.a.g(OTTApplication.o()).getLoggedUser() != null) {
                g.this.b0(true);
                g gVar3 = g.this;
                gVar3.Q0(gVar3.e0);
                return;
            }
            androidx.fragment.app.h activity = g.this.getActivity();
            ScreenType screenType = ScreenType.SIGNUP;
            String str = r.h1;
            g gVar4 = g.this;
            String str2 = gVar4.e0;
            String str3 = gVar4.f0;
            long j = gVar4.m0;
            g gVar5 = g.this;
            List<SupportedGateway> list = gVar5.Z;
            Double valueOf = Double.valueOf(gVar5.n0);
            g gVar6 = g.this;
            u.P(activity, screenType, str, null, 12, str2, str3, j, list, valueOf, gVar6.g0, gVar6.h0, gVar6.i0, g.this.l0);
        }
    }

    class b implements PaymentManager.PaymentCallback<OrderIdResponse> {
        b() {
        }

        @Override
        public void onSuccess(OrderIdResponse orderIdResponse) {
            g.this.W0(orderIdResponse);
        }

        @Override
        public void onFailure(Error error) {
            g.this.V0(error);
        }
    }

    class c implements PaymentManager.PaymentCallback<OrderIdResponse> {
        c() {
        }

        @Override
        public void onSuccess(OrderIdResponse orderIdResponse) {
            g.this.W0(orderIdResponse);
        }

        @Override
        public void onFailure(Error error) {
            g.this.V0(error);
        }
    }

    class d implements Runnable {
        d() {
        }

        @Override
        public void run() {
            OttLog.error("PackagaFragment", "checking order status " + g.this.w0);
            if (g.this.getActivity() == null) {
                g gVar = g.this;
                gVar.t0 = true;
                gVar.u0 = false;
                gVar.b0(false);
                g.this.z0.removeCallbacks(this);
                return;
            }
            g gVar2 = g.this;
            if (!gVar2.t0 && gVar2.w0 < g.this.v0) {
                g gVar3 = g.this;
                gVar3.R0(gVar3.p0, "razorpay_order_id", g.this.q0, g.this.x0, g.this.y0);
                g.this.w0 += 10000;
                g.this.z0.postDelayed(this, 10000L);
                return;
            }
            g gVar4 = g.this;
            gVar4.t0 = false;
            gVar4.u0 = true;
            gVar4.z0.removeCallbacks(this);
            if (g.this.w0 >= g.this.v0) {
                g gVar5 = g.this;
                gVar5.u0 = false;
                gVar5.t0 = true;
                gVar5.b0(false);
                if (g.this.getActivity() != null) {
                    Toast.makeText((Context) g.this.getActivity(), 2131952634, 1).show();
                }
            }
        }
    }

    class e implements PaymentManager.PaymentCallback<OrderIdResponse> {
        e() {
        }

        @Override
        public void onSuccess(OrderIdResponse orderIdResponse) {
            hd.h.b("orderFialedCallback", "Success");
        }

        @Override
        public void onFailure(Error error) {
            hd.h.b("orderFialedCallback", "" + error.toString());
        }
    }

    class f implements PaymentManager.PaymentCallback<OrderIdResponse> {
        f() {
        }

        @Override
        public void onSuccess(OrderIdResponse orderIdResponse) {
            g.this.b0(false);
            g gVar = g.this;
            gVar.t0 = true;
            Toast.makeText((Context) gVar.getActivity(), 2131952631, 1).show();
            if (g.this.j0 == null || !g.this.j0.equalsIgnoreCase(r.i1)) {
                g.this.U0();
            } else {
                g.this.getActivity().finish();
            }
        }

        @Override
        public void onFailure(Error error) {
            g.this.b0(false);
            g gVar = g.this;
            gVar.t0 = true;
            Toast.makeText((Context) gVar.getActivity(), 2131952634, 1).show();
        }
    }

    class C0163g implements PaymentManager.PaymentCallback<PackageGeneric> {

        class a implements View.OnClickListener {
            final int a;
            final PackageGeneric c;
            final List d;

            a(int i, PackageGeneric packageGeneric, List list) {
                this.a = i;
                this.c = packageGeneric;
                this.d = list;
            }

            @Override
            public void onClick(View view) {
                for (int i = 0; i < this.a; i++) {
                    if (view.getId() == i) {
                        g.this.W = ((Duration) this.c.getDurations().get(i)).getCode();
                        AppCompatButton appCompatButton = (AppCompatButton) this.d.get(i);
                        appCompatButton.setTextColor(g.this.getResources().getColor(2131100544));
                        appCompatButton.setBackground(g.this.getResources().getDrawable(2131232375));
                        g.this.N.notifyDataSetChanged();
                    } else {
                        AppCompatButton appCompatButton2 = (AppCompatButton) this.d.get(i);
                        appCompatButton2.setTextColor(g.this.getResources().getColor(2131100472));
                        appCompatButton2.setBackground(g.this.getResources().getDrawable(2131232374));
                    }
                }
            }
        }

        C0163g() {
        }

        @Override
        public void onSuccess(PackageGeneric packageGeneric) {
            g.this.b0(false);
            g.this.y.setText(packageGeneric.getTitle());
            g.this.z.setText(packageGeneric.getDescription());
            g.this.z.setVisibility(8);
            g.this.B.setText(packageGeneric.getNote());
            g.this.W = packageGeneric.getDefaultDuration() != null ? packageGeneric.getDefaultDuration() : "";
            int size = packageGeneric.getDurations().size();
            g.this.A.setVisibility(0);
            g.this.G.setVisibility(0);
            HorizontalScrollView horizontalScrollView = new HorizontalScrollView(g.this.getActivity());
            horizontalScrollView.setLayoutParams(new ViewGroup.LayoutParams(-1, (int) g.this.getResources().getDimension(2131166357)));
            LinearLayout linearLayout = new LinearLayout(g.this.getActivity());
            LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams((int) g.this.getResources().getDimension(2131166700), (int) g.this.getResources().getDimension(2131166357));
            linearLayout.setOrientation(0);
            horizontalScrollView.addView(linearLayout);
            ArrayList arrayList = new ArrayList();
            for (int i = 0; i < size; i++) {
                AppCompatButton appCompatButton = new AppCompatButton(g.this.getActivity());
                appCompatButton.setText(((Duration) packageGeneric.getDurations().get(i)).getTitle());
                appCompatButton.setAllCaps(false);
                appCompatButton.setTextColor(g.this.getResources().getColor(2131100472));
                appCompatButton.setBackground(g.this.getResources().getDrawable(2131232374));
                appCompatButton.setId(i);
                appCompatButton.setTypeface(androidx.core.content.res.h.g(g.this.requireContext(), 2131296261));
                appCompatButton.setPadding(0, (int) g.this.getResources().getDimension(2131166363), 0, (int) g.this.getResources().getDimension(2131166363));
                appCompatButton.setGravity(17);
                arrayList.add(appCompatButton);
                if (packageGeneric.getDefaultDuration() == null) {
                    g.this.W = ((Duration) packageGeneric.getDurations().get(0)).getCode();
                    AppCompatButton appCompatButton2 = (AppCompatButton) arrayList.get(0);
                    appCompatButton2.setTextColor(g.this.getResources().getColor(2131100544));
                    appCompatButton2.setBackground(g.this.getResources().getDrawable(2131232375));
                } else if (packageGeneric.getDefaultDuration().equalsIgnoreCase(((Duration) packageGeneric.getDurations().get(i)).getCode())) {
                    g.this.W = ((Duration) packageGeneric.getDurations().get(i)).getCode();
                    AppCompatButton appCompatButton3 = (AppCompatButton) arrayList.get(i);
                    appCompatButton3.setTextColor(g.this.getResources().getColor(2131100544));
                    appCompatButton3.setBackground(g.this.getResources().getDrawable(2131232375));
                }
                appCompatButton.setOnClickListener(new a(size, packageGeneric, arrayList));
                linearLayout.addView((View) appCompatButton, (ViewGroup.LayoutParams) layoutParams);
            }
            g.this.L.addView(horizontalScrollView);
            if (g.this.S != null && g.this.S.size() > 0) {
                g.this.S.clear();
            }
            g.this.S.addAll(packageGeneric.getPackageResponse());
            g.this.M.setAdapter(g.this.N);
        }

        @Override
        public void onFailure(Error error) {
            if (g.this.getActivity() == null) {
                return;
            }
            g.this.b0(false);
            Toast.makeText((Context) g.this.getActivity(), (CharSequence) error.getMessage(), 1).show();
        }
    }

    private class h extends RecyclerView.Adapter<a> {

        class a extends RecyclerView.c0 {
            private RelativeLayout a;
            private TextView b;
            private TextView c;
            private TextView d;
            private ImageView e;
            View.OnClickListener f;

            class ViewOnClickListenerC0164a implements View.OnClickListener {
                ViewOnClickListenerC0164a() {
                }

                @Override
                public void onClick(View view) {
                    int size = ((PackageResponse) g.this.S.get(a.this.getAdapterPosition())).getPackageInfo().getPackages().size();
                    for (int i = 0; i < size; i++) {
                        if (((Package) ((PackageResponse) g.this.S.get(a.this.getAdapterPosition())).getPackageInfo().getPackages().get(i)).getDurationCode().equalsIgnoreCase(g.this.W)) {
                            g.this.V = i;
                        }
                    }
                    if (((Package) ((PackageResponse) g.this.S.get(a.this.getAdapterPosition())).getPackageInfo().getPackages().get(g.this.V)).getIsSubscribed().toString().equalsIgnoreCase("true")) {
                        return;
                    }
                    a aVar = a.this;
                    g.this.U = aVar.getAdapterPosition();
                    h hVar = h.this;
                    hVar.i(g.this.U);
                    h.this.notifyDataSetChanged();
                }
            }

            public a(View view) {
                super(view);
                this.f = new ViewOnClickListenerC0164a();
                this.a = (RelativeLayout) view.findViewById(2131429042);
                this.b = (TextView) view.findViewById(2131429031);
                this.c = (TextView) view.findViewById(2131429046);
                this.d = (TextView) view.findViewById(2131429041);
                this.e = (ImageView) view.findViewById(2131429022);
                this.a.setOnClickListener(this.f);
                this.e.setOnClickListener(this.f);
            }
        }

        private h() {
        }

        public void i(int i) {
            g gVar = g.this;
            gVar.Z = ((PackageResponse) gVar.S.get(i)).getSupportedGateway();
            g gVar2 = g.this;
            gVar2.e0 = String.valueOf(((Package) ((PackageResponse) gVar2.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getId());
            g gVar3 = g.this;
            gVar3.f0 = ((PackageResponse) gVar3.S.get(i)).getPackageInfo().getMaster().getName();
            g gVar4 = g.this;
            gVar4.m0 = ((Package) ((PackageResponse) gVar4.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getFreeTrial() != null ? ((Package) ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getFreeTrial().getExpiryDate().longValue() : 0L;
            g gVar5 = g.this;
            gVar5.n0 = ((Package) ((PackageResponse) gVar5.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getSalePrice().doubleValue();
            g gVar6 = g.this;
            gVar6.g0 = ((Package) ((PackageResponse) gVar6.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getDurationCode();
            g gVar7 = g.this;
            gVar7.h0 = ((Package) ((PackageResponse) gVar7.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getCurrency();
        }

        public void onBindViewHolder(a aVar, int i) {
            aVar.b.setText(((PackageResponse) g.this.S.get(i)).getPackageInfo().getMaster().getName());
            int size = ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().size();
            for (int i2 = 0; i2 < size; i2++) {
                if (((Package) ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().get(i2)).getDurationCode().equalsIgnoreCase(g.this.W)) {
                    g.this.V = i2;
                }
            }
            aVar.c.setText(((Package) ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getCurrency() + " " + ((Package) ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getSalePrice());
            TextView textView = aVar.d;
            StringBuilder sb2 = new StringBuilder();
            sb2.append("/");
            g gVar = g.this;
            sb2.append(gVar.S0(((Package) ((PackageResponse) gVar.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getDurationCode()));
            textView.setText(sb2.toString());
            aVar.e.setVisibility(0);
            if (((Package) ((PackageResponse) g.this.S.get(i)).getPackageInfo().getPackages().get(g.this.V)).getIsSubscribed().toString().equalsIgnoreCase("true")) {
                aVar.a.setBackground(g.this.getResources().getDrawable(2131230834));
                aVar.e.setVisibility(8);
            } else if (g.this.U == i) {
                aVar.a.setBackground(g.this.getResources().getDrawable(2131230832));
                aVar.e.setImageDrawable(g.this.getResources().getDrawable(2131232545));
            } else {
                aVar.a.setBackground(g.this.getResources().getDrawable(2131230830));
                aVar.e.setImageDrawable(g.this.getResources().getDrawable(2131232337));
            }
        }

        public int getItemCount() {
            return g.this.S.size();
        }

        public a onCreateViewHolder(ViewGroup viewGroup, int i) {
            View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(2131624314, viewGroup, false);
            inflate.setFocusableInTouchMode(false);
            inflate.setFocusable(false);
            return new a(inflate);
        }

        h(g gVar, a aVar) {
            this();
        }
    }

    public void Q0(String str) {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("packages", str);
            jSONObject.put("gateway", this.o0);
        } catch (JSONException unused) {
        }
        a.C0133a c0133a = hd.a.a;
        PreferenceManager g = c0133a.g(OTTApplication.o());
        if (g == null || g.getSystemFeaturesData() == null || g.getSystemFeaturesData().getSystemFeatures() == null || g.getSystemFeaturesData().getSystemFeatures().getEncryptApisList() == null || g.getSystemFeaturesData().getSystemFeatures().getEncryptApisList().getFields() == null || g.getSystemFeaturesData().getSystemFeatures().getEncryptApisList().getFields().getPayment() == null || !g.getSystemFeaturesData().getSystemFeatures().getEncryptApisList().getFields().getPayment().equalsIgnoreCase("true")) {
            c0133a.b(OTTApplication.o()).getPaymentManager().getOrderId(jSONObject, new c());
        } else {
            c0133a.b(OTTApplication.o()).getPaymentManager().getOrderIdEnc(jSONObject, new b());
        }
    }

    public void R0(String str, String str2, String str3, String str4, String str5) {
        b0(true);
        hd.a.a.b(OTTApplication.o()).getPaymentManager().completeRazorPayPayment(str, str2, str3, str4, str5, new f());
    }

    public String S0(String str) {
        str.hashCode();
        switch (str) {
            case "D":
            case "d":
                return getString(2131951973);
            case "M":
            case "m":
                return getString(2131952404);
            case "W":
            case "w":
                return getString(2131952993);
            case "Y":
            case "y":
                return getString(2131952997);
            case "HY":
            case "Hy":
            case "hy":
                return getString(2131952280);
            default:
                return str;
        }
    }

    public void U0() {
        Intent intent = new Intent((Context) getActivity(), (Class<?>) MainActivity.class);
        intent.setAction("android.intent.action.MAIN");
        intent.addCategory("android.intent.category.LAUNCHER");
        intent.addFlags(67108864);
        intent.addFlags(268468224);
        startActivity(intent);
        getActivity().finish();
    }

    public void V0(Error error) {
        b0(false);
        if (getActivity() == null) {
            return;
        }
        Toast.makeText((Context) getActivity(), (CharSequence) error.getMessage(), 1).show();
    }

    public void W0(OrderIdResponse orderIdResponse) {
        OttLog.error("order ID number", orderIdResponse.getOrderId());
        if (getActivity() == null) {
            return;
        }
        this.p0 = orderIdResponse.getOrderId();
        this.q0 = orderIdResponse.getTargetParams().getRazorpayOrderId();
        this.r0 = orderIdResponse.getTargetParams().getAmount();
        this.h0 = orderIdResponse.getTargetParams().getCurrency();
        Y0();
    }

    public void Z0(String str, String str2) {
        try {
            HashMap hashMap = new HashMap();
            hashMap.put(cc.c.J0, this.f0);
            hd.h.b("TAG", "#ATTRIBUTE_PACKAGE_NAME : " + this.f0);
            hashMap.put(cc.c.O0, S0(this.g0));
            hashMap.put(cc.c.K0, this.l0);
            hashMap.put(cc.c.M0, this.i0);
            hashMap.put(cc.c.L0, this.h0 + this.n0);
            hd.h.b("TAG", "#ATTRIBUTE_PACKAGE_DURATION : " + S0(this.g0));
            hd.h.b("TAG", "#ATTRIBUTE_PACKAGE_TYPE : " + this.l0);
            cc.c d2 = cc.c.d();
            ScreenType screenType = ScreenType.PAYMENTS;
            if (str2.trim().length() <= 0) {
                str2 = cc.c.M1;
            }
            d2.m(screenType, null, null, null, str, str2, hashMap);
        } catch (NullPointerException unused) {
        }
    }

    public void T0() {
        b0(true);
        if (this.i0.equalsIgnoreCase(r.j0)) {
            hd.a.a.b(OTTApplication.o()).getPaymentManager().getPackagesToUpgradeDowngrade("true", true, null, this.C0);
        } else if (this.i0.equalsIgnoreCase(r.k0)) {
            hd.a.a.b(OTTApplication.o()).getPaymentManager().getPackagesToUpgradeDowngrade("true", false, null, this.C0);
        } else {
            hd.a.a.b(OTTApplication.o()).getPaymentManager().getPackagesGeneric("true", null, null, this.C0);
        }
    }

    public void X0(int i, String str) {
        hd.a.a.b(OTTApplication.o()).getPaymentManager().completeRazorPayPaymentOnFailure(this.p0, i == 0 ? "Checkout.PAYMENT_CANCELED" : i == 2 ? "Checkout.NETWORK_ERROR" : i == 3 ? "Checkout.INVALID_OPTIONS" : i == 6 ? "Checkout.TLS_ERROR" : "", str, new e());
    }

    public void Y0() {
        Activity activity = getActivity();
        Checkout checkout = new Checkout();
        if (e0.b0(requireContext()) == TenantBuildType.EDUCATIONAL_BETA) {
            checkout.setKeyID(hd.a.a.c(OTTApplication.o()).getRpayTestId());
        } else {
            checkout.setKeyID(hd.a.a.c(OTTApplication.o()).getRpayLiveId());
        }
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(AppMeasurementSdk.ConditionalUserProperty.NAME, "" + getResources().getString(R.string.app_name));
            jSONObject.put("description", "Package : " + this.f0 + "  Duration : " + S0(this.g0));
            jSONObject.put("image", "https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/eduvy-new-logo-large.png");
            jSONObject.put("order_id", this.q0);
            User loggedUser = hd.a.a.g(OTTApplication.o()).getLoggedUser();
            if (loggedUser != null && loggedUser.getPhoneNumber() != null) {
                JSONObject jSONObject2 = new JSONObject();
                jSONObject2.put("contact", loggedUser.getPhoneNumber());
                jSONObject.put("prefill", jSONObject2);
            }
            checkout.open(activity, jSONObject);
            b0(false);
        } catch (Exception e2) {
            Toast.makeText(activity, "Error in payment: " + e2.getMessage(), 0).show();
        }
    }

    public void e0(String str, String str2) {
        String str3 = this.p0;
        if (str3 == null || str3.length() < 1) {
            return;
        }
        this.w0 = 0L;
        this.t0 = false;
        this.x0 = str;
        this.y0 = str2;
        this.z0.postDelayed(this.B0, 1000L);
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Checkout.preload(t.m());
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View inflate = layoutInflater.inflate(2131624353, viewGroup, false);
        K(inflate);
        this.y = (TextView) inflate.findViewById(2131428368);
        this.z = (TextView) inflate.findViewById(2131428366);
        this.A = (TextView) inflate.findViewById(2131427599);
        this.B = (TextView) inflate.findViewById(2131429238);
        this.G = inflate.findViewById(2131427856);
        this.H = (LinearLayout) inflate.findViewById(2131428290);
        this.I = (LinearLayout) inflate.findViewById(2131427585);
        this.J = (LinearLayout) inflate.findViewById(2131429587);
        this.K = (LinearLayout) inflate.findViewById(2131429222);
        this.C = (TextView) inflate.findViewById(2131428291);
        this.D = (TextView) inflate.findViewById(2131427586);
        this.E = (TextView) inflate.findViewById(2131429588);
        this.F = (TextView) inflate.findViewById(2131429223);
        this.L = (LinearLayout) inflate.findViewById(2131429011);
        RecyclerView findViewById = inflate.findViewById(2131429013);
        this.M = findViewById;
        findViewById.setLayoutManager(new LinearLayoutManager(getContext(), 1, false));
        this.M.setHasFixedSize(true);
        this.N = new h(this, null);
        this.G.setOnClickListener(this.A0);
        if (getArguments() != null) {
            this.i0 = getArguments().getString(r.i0) != null ? getArguments().getString(r.i0) : "";
            if (getArguments().containsKey(r.y0)) {
                this.j0 = getArguments().getString(r.y0);
            }
        }
        T0();
        return inflate;
    }

    public void onDestroy() {
        super.onDestroy();
        e0.m = -1;
    }

    public void onResume() {
        super.onResume();
    }
}