package com.ss.android.ugc.aweme.favorites.ui;

import X.0AP;
import X.4TL;
import X.8gF;
import X.C3625BRl;
import X.EIE;
import X.FCx;
import X.J8C;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;

public class UserFavoritesActivity extends J8C implements EIE {
    public C3625BRl<Fragment> LIZ;

    static {
        Covode.recordClassIndex(75780);
    }

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

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

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

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

    public void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.favorites.ui.UserFavoritesActivity", "onWindowFocusChanged", true);
        UserFavoritesActivity.super.onWindowFocusChanged(z);
    }

    public final String LJII() {
        UserFavoritesFragment LIZ2 = getSupportFragmentManager().LIZ("user_favorites_fragment_tag");
        if (!(LIZ2 instanceof UserFavoritesFragment) || LIZ2.LJIILIIL != 0) {
            return "";
        }
        return "collection_video";
    }

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

    /* JADX WARNING: type inference failed for: r7v0, types: [X.J8C, com.ss.android.ugc.aweme.favorites.ui.UserFavoritesActivity, X.1hK, X.SNU, android.app.Activity] */
    public void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.favorites.ui.UserFavoritesActivity", "onCreate", true);
        4TL r1 = new 4TL((byte) 0);
        r1.LJII = 2131099659;
        r1.LIZ = true;
        activityConfiguration(new FCx(r1));
        UserFavoritesActivity.super.onCreate(bundle);
        setContentView(2131559679);
        0AP LIZ2 = getSupportFragmentManager().LIZ();
        LIZ2.LIZIZ(2131363673, this.LIZ.get(), "user_favorites_fragment_tag");
        LIZ2.LIZIZ();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.favorites.ui.UserFavoritesActivity", "onCreate", false);
    }
}
