导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - e.java 源代码

正在查看: Hopscotch v9.7.2 应用的 e.java JAVA 源代码文件

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


package in.hopscotch.android.activity;

import android.app.Activity;
import android.content.DialogInterface;
import in.hopscotch.android.api.response.ActionResponse;
import in.hopscotch.android.api.rest.HSRetrofitCallback;
import in.hopscotch.android.components.CustomProgressbar;
import kotlin.jvm.internal.Intrinsics;
import retrofit2.Response;

public final class e extends HSRetrofitCallback<ActionResponse> {
    public final CreditTransferActivity a;

    public e(CreditTransferActivity creditTransferActivity) {
        this.a = creditTransferActivity;
    }

    @Override
    public final void onFailure(Throwable th) {
        ?? r4 = this.a;
        in.hopscotch.android.databinding.y yVar = ((CreditTransferActivity) r4).binding;
        if (yVar == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            yVar = null;
        }
        CustomProgressbar customProgressbar = yVar.g;
        Intrinsics.checkNotNullExpressionValue(customProgressbar, "eddProgressBar");
        in.hopscotch.android.core.util.j.b(customProgressbar);
        in.hopscotch.android.util.q.h((Activity) r4, r4.getString(2132019191), (DialogInterface.OnDismissListener) null);
        r4.finish();
    }

    @Override
    public final void onResponse(Response<ActionResponse> response) {
        ?? r0 = this.a;
        in.hopscotch.android.databinding.y yVar = ((CreditTransferActivity) r0).binding;
        in.hopscotch.android.databinding.y yVar2 = null;
        if (yVar == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            yVar = null;
        }
        CustomProgressbar customProgressbar = yVar.g;
        Intrinsics.checkNotNullExpressionValue(customProgressbar, "eddProgressBar");
        in.hopscotch.android.core.util.j.b(customProgressbar);
        if (response == null || !response.isSuccessful()) {
            in.hopscotch.android.util.q.h((Activity) r0, r0.getString(2132019191), (DialogInterface.OnDismissListener) null);
            r0.finish();
            return;
        }
        if (response.body() != null) {
            Object body = response.body();
            Intrinsics.checkNotNull(body);
            String str = ((ActionResponse) body).action;
            String str2 = in.hopscotch.android.util.a1.a;
            if ("success".equalsIgnoreCase(str)) {
                in.hopscotch.android.databinding.y yVar3 = ((CreditTransferActivity) r0).binding;
                if (yVar3 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    yVar3 = null;
                }
                yVar3.f.setVisibility(8);
                in.hopscotch.android.databinding.y yVar4 = ((CreditTransferActivity) r0).binding;
                if (yVar4 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    yVar4 = null;
                }
                yVar4.u.f.setVisibility(0);
                in.hopscotch.android.databinding.y yVar5 = ((CreditTransferActivity) r0).binding;
                if (yVar5 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                } else {
                    yVar2 = yVar5;
                }
                yVar2.u.e.j("https://www.hopscotch.in/assets_helpcentre/images/done.gif", false, false);
                return;
            }
        }
        ActionResponse actionResponse = (ActionResponse) response.body();
        in.hopscotch.android.util.q.h((Activity) r0, actionResponse != null ? actionResponse.errorMsg : null, (DialogInterface.OnDismissListener) null);
    }
}