package com.ss.android.ugc.aweme.tag;

import X.0HH;
import X.1hK;
import X.2Pr;
import X.2UX;
import X.2nK;
import X.C1527Adf;
import X.C1536Ado;
import X.C1541Adt;
import X.C1542Adu;
import X.C1544Adw;
import X.C3251BDb;
import X.C6391CZv;
import X.Crj;
import X.LsC;
import X.M12;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import androidx.fragment.app.Fragment;
import com.bytedance.assem.arch.core.Assembler;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.arg.RouteArgExtension;

@C6391CZv
public final class VideoTagPage extends Hilt_VideoTagPage {
    public static final C1544Adw LJ = new C1544Adw((byte) 0);
    public final Crj LJFF = RouteArgExtension.INSTANCE.optionalArgNotNull(this, C1541Adt.LIZ, "init_config", C1527Adf.class);
    public SparseArray LJI;

    static {
        Covode.recordClassIndex(118579);
    }

    public final C1527Adf LIZ() {
        return (C1527Adf) this.LJFF.getValue();
    }

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

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

    public final /* synthetic */ void onDestroyView() {
        VideoTagPage.super.onDestroyView();
        LJI();
    }

    public final void onCreate(Bundle bundle) {
        Window window;
        VideoTagPage.super.onCreate(bundle);
        1hK activity = getActivity();
        if (!(activity == null || (window = activity.getWindow()) == null)) {
            window.setSoftInputMode(32);
        }
        LIZ(C1542Adu.LIZ);
    }

    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        VideoTagPage.super.onViewCreated(view, bundle);
        C3251BDb.LIZ((Fragment) this, (LsC<? super Assembler, 2Pr>) new C1536Ado(this));
        2UX r2 = new 2UX();
        r2.LIZ("previous_page", LIZ().getEnterFrom());
        r2.LIZ("function", "tag");
        2nK.LIZ("enter_tag_mention_page", r2.LIZ);
    }

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