package com.ss.android.ugc.aweme.kids.liked.detail;

import X.8gF;
import X.AnonymousClass2cZ;
import X.C218636c;
import X.C219136h;
import X.C219236i;
import X.Lel;
import X.PpL;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
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;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.List;

public final class FavoriteFeedActivity extends C218636c {
    public static final C219136h LIZ = new C219136h((byte) 0);
    public HashMap LIZIZ;

    static {
        Covode.recordClassIndex(89774);
    }

    public final String LIZIZ() {
        return "favorite_feed_fragment";
    }

    public final String LIZJ() {
        return "like";
    }

    public final String LIZLLL() {
        return "";
    }

    public final void _$_clearFindViewByIdCache() {
        HashMap hashMap = this.LIZIZ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

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

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

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

    /* JADX WARNING: type inference failed for: r0v0, types: [X.36c, android.app.Activity, com.ss.android.ugc.aweme.kids.liked.detail.FavoriteFeedActivity] */
    public final void onPause() {
        8gF.LIZJ(this);
        super.onPause();
    }

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

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

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.liked.detail.FavoriteFeedActivity", "onWindowFocusChanged", true);
        FavoriteFeedActivity.super.onWindowFocusChanged(z);
    }

    public final String LJFF() {
        return LIZ(getIntent(), "current_id");
    }

    public final AnonymousClass2cZ LIZ() {
        List list;
        WeakReference<List<Aweme>> weakReference = C219236i.LIZ;
        if (weakReference == null || (list = (List) weakReference.get()) == null) {
            list = Lel.INSTANCE;
        }
        return new PpL(list);
    }

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

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