package com.ss.android.ugc.aweme.mix.editname;

import X.8gF;
import X.AYC;
import X.AYE;
import X.C1205AWj;
import android.content.Intent;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;
import com.ss.android.ugc.aweme.feed.model.Aweme;

public final class ChangePlaylistNameActivity extends C1205AWj {
    public static final AYE LIZ = new AYE((byte) 0);
    public String LIZIZ = "";
    public String LIZJ = "";
    public long LIZLLL;
    public String LJ = "";
    public SparseArray LJFF;

    static {
        Covode.recordClassIndex(92410);
    }

    public final void _$_clearFindViewByIdCache() {
        SparseArray sparseArray = this.LJFF;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final View _$_findCachedViewById(int i) {
        if (this.LJFF == null) {
            this.LJFF = new SparseArray();
        }
        View view = (View) this.LJFF.get(i);
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.LJFF.put(i, findViewById);
        return findViewById;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.SNU, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onDestroy() {
        8gF.LJ(this);
        ChangePlaylistNameActivity.super.onDestroy();
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.SNU, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onPause() {
        8gF.LIZJ(this);
        ChangePlaylistNameActivity.super.onPause();
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [X.SNU, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onResume() {
        8gF.LIZIZ(this);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity", "onResume", true);
        ChangePlaylistNameActivity.super.onResume();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity", "onResume", false);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.SNU, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onStart() {
        8gF.LIZ(this);
        ChangePlaylistNameActivity.super.onStart();
    }

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity", "onWindowFocusChanged", true);
        ChangePlaylistNameActivity.super.onWindowFocusChanged(z);
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [X.SNU, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        ChangePlaylistNameActivity.super.onStop();
        if (EnterTransitionCrashOptimizer.getContext() != null) {
            try {
                getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
            } catch (Throwable unused) {
            }
        }
        try {
            getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
        } catch (Throwable unused2) {
        }
    }

    public final Fragment LIZ() {
        Intent intent = getIntent();
        if (intent != null) {
            String LIZ2 = LIZ(intent, "user_last_name");
            String str = "";
            if (LIZ2 == null) {
                LIZ2 = str;
            }
            this.LIZIZ = LIZ2;
            String LIZ3 = LIZ(intent, "mix_id");
            if (LIZ3 == null) {
                LIZ3 = str;
            }
            this.LIZJ = LIZ3;
            this.LIZLLL = intent.getLongExtra("moderated_rename_timestamp", 0);
            String LIZ4 = LIZ(intent, "enter_from");
            if (LIZ4 != null) {
                str = LIZ4;
            }
            this.LJ = str;
        }
        return AYC.LIZ(EditPlayListNameFragment.LIZ, 2, this.LIZIZ, this.LIZJ, (Aweme) null, Long.valueOf(this.LIZLLL), this.LJ, 8);
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [X.AWj, android.app.Activity, com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity] */
    public final void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity", "onCreate", true);
        super.onCreate(bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.mix.editname.ChangePlaylistNameActivity", "onCreate", false);
    }

    public static String LIZ(Intent intent, String str) {
        try {
            return intent.getStringExtra(str);
        } catch (Exception unused) {
            return null;
        }
    }
}
