package defpackage;

import androidx.media3.container.NalUnitUtil;
import com.google.android.material.tabs.TabLayout;
import com.strmr.ps.data.repository.ScreenConfigRepository;
import com.strmr.ps.ui.mobile.settings.MobileLayoutRowsFragment;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\n\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Ld46;", "Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final class d46 implements TabLayout.OnTabSelectedListener {
    public final /* synthetic */ MobileLayoutRowsFragment a;

    public d46(MobileLayoutRowsFragment mobileLayoutRowsFragment) {
        this.a = mobileLayoutRowsFragment;
    }

    @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
    public final void onTabReselected(TabLayout.Tab tab) {
        cr4.g(tab, "tab");
    }

    @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
    public final void onTabSelected(TabLayout.Tab tab) {
        cr4.g(tab, "tab");
        int position = tab.getPosition();
        ScreenConfigRepository.ScreenType screenType = position != 0 ? position != 1 ? ScreenConfigRepository.ScreenType.TV_SHOWS : ScreenConfigRepository.ScreenType.MOVIES : ScreenConfigRepository.ScreenType.HOME;
        MobileLayoutRowsFragment mobileLayoutRowsFragment = this.a;
        mobileLayoutRowsFragment.n = screenType;
        mobileLayoutRowsFragment.p().h(mobileLayoutRowsFragment.n);
    }

    @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
    public final void onTabUnselected(TabLayout.Tab tab) {
        cr4.g(tab, "tab");
    }
}
