导航菜单

页面标题

页面副标题

饼干视频 v4.1.0 - C7715.java 源代码

正在查看: 饼干视频 v4.1.0 应用的 C7715.java JAVA 源代码文件

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


package amc.cd.p1191;

import amc.cd.p1006.C6504;
import amc.cd.p1023.C6648;
import amc.cd.p1191.C7715;
import amc.cd.p1321.C8512;
import amc.cd.p1482.C9514;
import amc.cd.p563.C3722;
import amc.cd.p563.C3724;
import amc.cd.p824.C5162;
import amc.cd.p828.C5180;
import amc.cd.p961.C6172;
import amc.cd.p961.C6183;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.ObservableField;
import com.aamon.symmetry.origin.data.entry.ErrorSheetEntry;
import com.kwad.sdk.m.e;
import com.wholepoint.wpfilms.R;
import java.io.IOException;
import java.util.List;
import kotlin.Metadata;
import okhttp3.Response;
import okhttp3.ResponseBody;

@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b0\u00101Jt\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\b\u0010\t\u001a\u0004\u0018\u00010\b2\b\u0010\u000b\u001a\u0004\u0018\u00010\n2\u000e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f2\u000e\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f2\u000e\u0010\u0011\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\fJ\u000e\u0010\u0016\u001a\u00020\u00122\u0006\u0010\u0015\u001a\u00020\u0014R\u0018\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u0018\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0019\u0010\u001aR\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001b\u0010\u001cR\u0018\u0010\t\u001a\u0004\u0018\u00010\b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001d\u0010\u001eR\u0018\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001f\u0010 R\u001e\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b!\u0010\"R\u001e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b#\u0010\"R*\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b$\u0010\"\u001a\u0004\b\u0010\u0010%\"\u0004\b&\u0010'R\u001e\u0010\u0011\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0013\u0010\"R$\u0010-\u001a\u0004\u0018\u00010(8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010)\u001a\u0004\b$\u0010*\"\u0004\b+\u0010,R\u0011\u0010/\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\b#\u0010.¨\u00062"}, d2 = {"Lamc/cd/ऐआऋऋअअईऐआऌ/इईऔओऋआऐइऐ;", "", "Landroid/content/Context;", "context", "Landroid/app/Activity;", "activity", "Landroid/widget/LinearLayout;", "llErrorPage", "Landroid/widget/TextView;", "tvEmpty", "Landroid/widget/Button;", "btnDownload", "Landroidx/databinding/ObservableField;", "", "loadError", "isLoading", "isErrorBtnDownload", "loadBg", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "अअआऊअआइआ", "Lcom/aamon/symmetry/origin/data/entry/ErrorSheetEntry;", "errorPageEntry", "ईअअआऔऌएऌई", "ईऌओओआऊउउईउ", "Landroid/content/Context;", "ऐऊऐएओऔऔऋऐऐ", "Landroid/app/Activity;", C5162.f8594, "Landroid/widget/LinearLayout;", "इईऔओऋआऐइऐ", "Landroid/widget/TextView;", C8512.f13519, "Landroid/widget/Button;", "ऌऔऌआउउऊआ", "Landroidx/databinding/ObservableField;", "ऊएअऊऔ", "एअऐऌए", "()Landroidx/databinding/ObservableField;", "setErrorBtnDownload", "(Landroidx/databinding/ObservableField;)V", "Lamc/cd/ऐआऋऋअअईऐआऌ/ओइऌऊएएऐ;", "Lamc/cd/ऐआऋऋअअईऐआऌ/ओइऌऊएएऐ;", "()Lamc/cd/ऐआऋऋअअईऐआऌ/ओइऌऊएएऐ;", "ओऌएऐऐऔओऋउउ", "(Lamc/cd/ऐआऋऋअअईऐआऌ/ओइऌऊएएऐ;)V", "updateNewPop", "()Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "errorPageData", "<init>", "()V", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public final class C7715 {

    public ObservableField<Boolean> loadBg;

    public TextView tvEmpty;

    public C7719 updateNewPop;

    public Context context;

    public ObservableField<Boolean> isLoading;

    public ObservableField<Boolean> loadError;

    public ObservableField<Boolean> isErrorBtnDownload;

    public Activity activity;

    public Button btnDownload;

    public LinearLayout llErrorPage;

    @Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0016¨\u0006\t"}, d2 = {"amc/cd/ऐआऋऋअअईऐआऌ/इईऔओऋआऐइऐ$ईऌओओआऊउउईउ", "Lamc/cd/ऌऔआआऌ/ऐऊऐएओऔऔऋऐऐ$ऐऊऐएओऔऔऋऐऐ;", "Ljava/io/IOException;", e.TAG, "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onFailure", "Lokhttp3/Response;", "response", "onSuccess", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
    public static final class C7716 implements C6648.InterfaceC6650 {
        public C7716() {
        }

        public static final void m11042(C7715 c7715, ErrorSheetEntry errorSheetEntry) {
            C6504.m9558(c7715, "this$0");
            C6504.m9558(errorSheetEntry, "$errorPageEntry");
            c7715.m11037(errorSheetEntry);
        }

        @Override
        public void onFailure(IOException iOException) {
            ObservableField observableField;
            ObservableField observableField2 = C7715.this.isLoading;
            if (observableField2 != null) {
                observableField2.set(Boolean.FALSE);
            }
            if (C7715.this.loadBg != null && (observableField = C7715.this.loadBg) != null) {
                observableField.set(Boolean.TRUE);
            }
            ObservableField observableField3 = C7715.this.loadError;
            if (observableField3 != null) {
                observableField3.set(Boolean.TRUE);
            }
        }

        @Override
        public void onSuccess(Response response) {
            ObservableField observableField;
            C6504.m9558(response, "response");
            try {
                ResponseBody body = response.body();
                C6504.m9570(body);
                String string = body.string();
                int length = string.length() - 1;
                int i = 0;
                boolean z = false;
                while (i <= length) {
                    boolean z2 = C6504.m9559(string.charAt(!z ? i : length), 32) <= 0;
                    if (z) {
                        if (!z2) {
                            break;
                        } else {
                            length--;
                        }
                    } else if (z2) {
                        i++;
                    } else {
                        z = true;
                    }
                }
                String m5651 = C3722.m5651(string.subSequence(i, length + 1).toString());
                C6504.m9564(m5651, "decrypt(response.body!!.…ing().trim { it <= ' ' })");
                if (C5180.INSTANCE.m7328(m5651)) {
                    return;
                }
                Object m8898 = C6172.m8898(m5651, ErrorSheetEntry.class);
                C6504.m9564(m8898, "fromJson(\n              …                        )");
                final ErrorSheetEntry errorSheetEntry = (ErrorSheetEntry) m8898;
                Activity activity = C7715.this.activity;
                if (activity != null) {
                    final C7715 c7715 = C7715.this;
                    activity.runOnUiThread(new Runnable() {
                        @Override
                        public final void run() {
                            C7715.C7716.m11042(C7715.this, errorSheetEntry);
                        }
                    });
                }
            } catch (IOException e) {
                e.printStackTrace();
                ObservableField observableField2 = C7715.this.isLoading;
                if (observableField2 != null) {
                    observableField2.set(Boolean.FALSE);
                }
                if (C7715.this.loadBg != null && (observableField = C7715.this.loadBg) != null) {
                    observableField.set(Boolean.TRUE);
                }
                ObservableField observableField3 = C7715.this.loadError;
                if (observableField3 != null) {
                    observableField3.set(Boolean.TRUE);
                }
            }
        }
    }

    public static final void m11030(ErrorSheetEntry errorSheetEntry, C7715 c7715, View view) {
        C6504.m9558(errorSheetEntry, "$errorPageEntry");
        C6504.m9558(c7715, "this$0");
        if (C5180.INSTANCE.m7328(errorSheetEntry.getA())) {
            C3724.m5658("下载链接为空");
            return;
        }
        C7719 c7719 = new C7719();
        c7715.updateNewPop = c7719;
        c7719.m11059(c7715.context, c7715.activity, errorSheetEntry.getA());
    }

    public static final void m11034(C7715 c7715, String str, View view) {
        C6504.m9558(c7715, "this$0");
        C6504.m9558(str, "$str");
        C6183.m8908(c7715.context, str);
    }

    public final void m11036(Context context, Activity activity, LinearLayout linearLayout, TextView textView, Button button, ObservableField<Boolean> observableField, ObservableField<Boolean> observableField2, ObservableField<Boolean> observableField3, ObservableField<Boolean> observableField4) {
        C6504.m9558(context, "context");
        C6504.m9558(activity, "activity");
        this.context = context;
        this.activity = activity;
        this.llErrorPage = linearLayout;
        this.tvEmpty = textView;
        this.btnDownload = button;
        this.loadError = observableField;
        this.isLoading = observableField2;
        this.isErrorBtnDownload = observableField3;
        this.loadBg = observableField4;
        m11038();
    }

    public final void m11037(final ErrorSheetEntry errorSheetEntry) {
        TextView textView;
        C6504.m9558(errorSheetEntry, "errorPageEntry");
        ObservableField<Boolean> observableField = this.isLoading;
        if (observableField != null) {
            observableField.set(Boolean.FALSE);
        }
        ObservableField<Boolean> observableField2 = this.loadBg;
        if (observableField2 != null && observableField2 != null) {
            observableField2.set(Boolean.TRUE);
        }
        ObservableField<Boolean> observableField3 = this.loadError;
        if (observableField3 != null) {
            observableField3.set(Boolean.TRUE);
        }
        if (!C5180.INSTANCE.m7328(errorSheetEntry.getC()) && (textView = this.tvEmpty) != null) {
            textView.setText(errorSheetEntry.getC());
        }
        List<String> w = errorSheetEntry.getW();
        if (!(w == null || w.isEmpty())) {
            LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
            layoutParams.setMargins(15, 10, 15, 10);
            List<String> w2 = errorSheetEntry.getW();
            C6504.m9570(w2);
            int size = w2.size();
            int i = 0;
            while (i < size) {
                View inflate = LayoutInflater.from(this.context).inflate(R.layout.item_error_page_net, (ViewGroup) this.llErrorPage, false);
                C6504.m9564(inflate, "from(context)\n          …_net, llErrorPage, false)");
                TextView textView2 = (TextView) inflate.findViewById(R.id.tv_name);
                StringBuilder sb = new StringBuilder();
                sb.append("官网");
                int i2 = i + 1;
                sb.append(i2);
                textView2.setText(sb.toString());
                List<String> w3 = errorSheetEntry.getW();
                C6504.m9570(w3);
                final String str = w3.get(i);
                textView2.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        C7715.m11034(C7715.this, str, view);
                    }
                });
                LinearLayout linearLayout = this.llErrorPage;
                if (linearLayout != null) {
                    linearLayout.addView(textView2, layoutParams);
                }
                i = i2;
            }
        }
        if (C5180.INSTANCE.m7328(errorSheetEntry.getA())) {
            return;
        }
        ObservableField<Boolean> observableField4 = this.isErrorBtnDownload;
        if (observableField4 != null) {
            observableField4.set(Boolean.TRUE);
        }
        Button button = this.btnDownload;
        if (button != null) {
            button.setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    C7715.m11030(ErrorSheetEntry.this, this, view);
                }
            });
        }
    }

    public final C9514 m11038() {
        LinearLayout linearLayout = this.llErrorPage;
        if (linearLayout != null) {
            linearLayout.removeAllViews();
        }
        C6648.m10134("https://wdom.oss-cn-guangzhou.aliyuncs.com/common/network_error.png", new C7716());
        return C9514.f14829;
    }

    public final C7719 getUpdateNewPop() {
        return this.updateNewPop;
    }

    public final void m11040(C7719 c7719) {
        this.updateNewPop = c7719;
    }
}