package com.bytedance.android.live.broadcast.highlight;

import X.AnonymousClass0Y6;
import X.AnonymousClass0Y7;
import X.C10000b0;
import X.C40901jk;
import X.Fun;
import X.M12;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import com.bytedance.android.livesdk.LiveDialogFragment;
import com.bytedance.covode.number.Covode;
import java.util.HashMap;

public final class DownloadProgressDialog extends LiveDialogFragment {
    public ProgressBar LIZ;
    public C40901jk LIZIZ;
    public AnonymousClass0Y6 LIZJ;
    public ImageView LIZLLL;
    public HashMap LJ;

    static {
        Covode.recordClassIndex(5174);
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [androidx.fragment.app.Fragment, com.bytedance.android.live.broadcast.highlight.DownloadProgressDialog] */
    public final View LIZ(int i) {
        if (this.LJ == null) {
            this.LJ = new HashMap();
        }
        View view = (View) this.LJ.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJ.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    public final /* synthetic */ void onDestroyView() {
        DownloadProgressDialog.super.onDestroyView();
        z_();
    }

    public final void z_() {
        HashMap hashMap = this.LJ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.bytedance.android.livesdk.LiveDialogFragment, com.bytedance.android.live.broadcast.highlight.DownloadProgressDialog, androidx.fragment.app.DialogFragment] */
    public final void onStart() {
        DownloadProgressDialog.super.onStart();
        Dialog dialog = getDialog();
        if (dialog != null) {
            dialog.setCancelable(false);
        }
    }

    public final Fun LIZ() {
        Fun fun = new Fun(2131561575);
        fun.LJIIIIZZ = C10000b0.LIZ(106.0f);
        fun.LJII = C10000b0.LIZ(113.0f);
        fun.LJI = 17;
        fun.LJ = false;
        return fun;
    }

    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        DownloadProgressDialog.super.onViewCreated(view, bundle);
        this.LIZ = (ProgressBar) view.findViewById(2131368391);
        this.LIZIZ = (C40901jk) view.findViewById(2131372191);
        ImageView imageView = (ImageView) view.findViewById(2131362976);
        this.LIZLLL = imageView;
        if (imageView != null) {
            imageView.setOnClickListener(new AnonymousClass0Y7(this));
        }
    }
}
