38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
package c.b.a.a;
|
|
|
|
import androidx.viewpager.widget.ViewPager;
|
|
import com.google.android.material.tabs.TabLayout;
|
|
import d0.z.d.m;
|
|
/* compiled from: AddContentDialogFragment.kt */
|
|
public final class b implements TabLayout.OnTabSelectedListener {
|
|
public final /* synthetic */ a a;
|
|
|
|
public b(a aVar) {
|
|
this.a = aVar;
|
|
}
|
|
|
|
@Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
|
|
public void onTabReselected(TabLayout.Tab tab) {
|
|
m.checkNotNullParameter(tab, "tab");
|
|
}
|
|
|
|
@Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
|
|
public void onTabSelected(TabLayout.Tab tab) {
|
|
m.checkNotNullParameter(tab, "tab");
|
|
int position = tab.getPosition();
|
|
if (position == 0) {
|
|
this.a.h();
|
|
return;
|
|
}
|
|
ViewPager viewPager = this.a.j;
|
|
if (viewPager != null) {
|
|
viewPager.setCurrentItem(position - 1);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener
|
|
public void onTabUnselected(TabLayout.Tab tab) {
|
|
m.checkNotNullParameter(tab, "tab");
|
|
}
|
|
}
|