package com.ss.android.ugc.aweme.popularfeed.ui.tab;

import X.3hg;
import X.9Y3;
import X.M12;
import android.content.Context;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.tiktok.homepage.mainfragment.TopTabProtocol;
import com.ss.android.ugc.aweme.AccountService;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.popularfeed.ui.FeedPopularFragment;
import com.ss.android.ugc.aweme.specact.SpecActServiceImpl;
import kotlin.h.b.n;

public final class PopularTabProtocol extends TopTabProtocol {
    public final String LIZ = "Popular";
    public final Class<? extends Fragment> LIZIZ = FeedPopularFragment.class;
    public final 3hg LIZJ = 3hg.X_TAB;
    public final int LIZLLL = 33;
    public final String LJ = "homepage_popular";

    static {
        Covode.recordClassIndex(97871);
    }

    public final String LIZ() {
        return this.LJ;
    }

    public final String LIZIZ() {
        return this.LIZ;
    }

    public final Class<? extends Fragment> LIZJ() {
        return this.LIZIZ;
    }

    public final int LIZLLL() {
        return this.LIZLLL;
    }

    public final 3hg LJIIIIZZ() {
        return this.LIZJ;
    }

    public final boolean LJFF() {
        if (9Y3.LIZ(9Y3.LIZ(), true, "enable_popular_feed", 0) == 1) {
            return true;
        }
        return false;
    }

    public final void LJIIIZ() {
        SpecActServiceImpl.LJIJJ().LIZ("Popular");
    }

    public final Bundle LIZ(Context context) {
        M12.LIZ(context);
        Bundle bundle = new Bundle(2);
        bundle.putInt("com.ss.android.ugc.aweme.intent.extra.FEED_TYPE", this.LIZLLL);
        bundle.putString("com.ss.android.ugc.aweme.intent.extra.EVENT_TYPE", "homepage_popular");
        return bundle;
    }

    public final String LIZIZ(Context context) {
        M12.LIZ(context);
        String string = context.getResources().getString(2131830754);
        n.LIZIZ(string, "");
        return string;
    }

    public final boolean LIZJ(Context context) {
        M12.LIZ(context);
        IAccountUserService LJFF = AccountService.LIZ().LJFF();
        n.LIZIZ(LJFF, "");
        return LJFF.isLogin();
    }
}
