package com.ss.android.ugc.aweme.setting.page.authmanager;

import X.0HH;
import X.7he;
import X.C0295Crj;
import X.C1445DZp;
import X.C5726F4g;
import X.C5736F4q;
import X.D1G;
import X.F4R;
import X.F4U;
import X.F51;
import X.KEM;
import X.M12;
import X.OQg;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.arch.JediBaseFragment;
import com.ss.android.ugc.aweme.setting.viewmodel.AuthListViewModel;
import kotlin.h.b.n;

public final class AuthAppInfoListFragment extends JediBaseFragment {
    public static final F4R LIZLLL = new F4R((byte) 0);
    public final C0295Crj LIZIZ = 7he.LIZ(new C5726F4g(this));
    public F51 LIZJ;
    public final C0295Crj LJ;
    public final C0295Crj LJIIIZ = 7he.LIZ(new C5736F4q(this));
    public SparseArray LJIIJ;

    static {
        Covode.recordClassIndex(105922);
    }

    public final View LIZJ(int i) {
        if (this.LJIIJ == null) {
            this.LJIIJ = new SparseArray();
        }
        View view = (View) this.LJIIJ.get(i);
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJIIJ.put(i, findViewById);
        return findViewById;
    }

    public final AuthListViewModel LIZJ() {
        return (AuthListViewModel) this.LJ.getValue();
    }

    public final OQg LIZLLL() {
        return (OQg) this.LJIIIZ.getValue();
    }

    public final void cb_() {
        SparseArray sparseArray = this.LJIIJ;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final /* synthetic */ void onDestroyView() {
        AuthAppInfoListFragment.super.onDestroyView();
        cb_();
    }

    public final void onResume() {
        AuthAppInfoListFragment.super.onResume();
        LJ();
    }

    public final void LJ() {
        C1445DZp dZp = (C1445DZp) LIZJ(2131367127);
        n.LIZIZ(dZp, "");
        dZp.getState().LIZ();
        LIZJ().LIZLLL.refresh();
    }

    public AuthAppInfoListFragment(F51 f51) {
        M12.LIZ(f51);
        this.LIZJ = f51;
        D1G LIZ = KEM.LIZ.LIZ(AuthListViewModel.class);
        this.LJ = 7he.LIZ(new F4U(this, LIZ, LIZ));
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [X.DV1] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onViewCreated(android.view.View r13, android.os.Bundle r14) {
        /*
            r12 = this;
            X.M12.LIZ(r13)
            com.ss.android.ugc.aweme.setting.page.authmanager.AuthAppInfoListFragment.super.onViewCreated(r13, r14)
            r0 = 2131367127(0x7f0a14d7, float:1.8354167E38)
            android.view.View r1 = r12.LIZJ(r0)
            androidx.recyclerview.widget.RecyclerView r1 = (androidx.recyclerview.widget.RecyclerView) r1
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r1, r0)
            r0 = 0
            r1.setItemAnimator(r0)
            r12.LJ()
            r0 = 2131362572(0x7f0a030c, float:1.8344928E38)
            android.view.View r1 = r12.LIZJ(r0)
            X.IxE r1 = (X.IxE) r1
            X.F4t r0 = new X.F4t
            r0.<init>(r12)
            r1.setOnClickListener(r0)
            com.ss.android.ugc.aweme.setting.viewmodel.AuthListViewModel r0 = r12.LIZJ()
            com.bytedance.jedi.arch.ext.list.ListMiddleware<com.ss.android.ugc.aweme.setting.viewmodel.AuthInfoState, X.F4z, X.Dov> r3 = r0.LIZLLL
            r4 = r12
            X.F4Z r2 = new X.F4Z
            r2.<init>(r12)
            X.F4W r1 = new X.F4W
            r1.<init>(r12)
            X.F4h r0 = new X.F4h
            r0.<init>(r12)
            X.F4Y r7 = new X.F4Y
            r7.<init>(r2, r1, r0)
            r5 = 0
            r6 = 0
            r8 = 0
            r9 = 0
            r10 = 0
            r11 = 1006(0x3ee, float:1.41E-42)
            com.bytedance.jedi.arch.ext.list.ListMiddleware.LIZ(r3, r4, r5, r6, r7, r8, r9, r10, r11)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.setting.page.authmanager.AuthAppInfoListFragment.onViewCreated(android.view.View, android.os.Bundle):void");
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        return 0HH.LIZ(layoutInflater, 2131561268, viewGroup, false);
    }
}
