Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
52
apk_decompiled/sources/H2/a.java
Normal file
52
apk_decompiled/sources/H2/a.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package H2;
|
||||
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.view.View;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import i2.AbstractC0396a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a extends E2.e {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ int f693d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public /* synthetic */ a(int i) {
|
||||
super(3);
|
||||
this.f693d = i;
|
||||
}
|
||||
|
||||
@Override // E2.e
|
||||
public final void l(TabLayout tabLayout, View view, View view2, float f2, Drawable drawable) {
|
||||
float sin;
|
||||
float cos;
|
||||
switch (this.f693d) {
|
||||
case 0:
|
||||
RectF f4 = E2.e.f(tabLayout, view);
|
||||
RectF f5 = E2.e.f(tabLayout, view2);
|
||||
if (f4.left < f5.left) {
|
||||
double d4 = (f2 * 3.141592653589793d) / 2.0d;
|
||||
sin = (float) (1.0d - Math.cos(d4));
|
||||
cos = (float) Math.sin(d4);
|
||||
} else {
|
||||
double d5 = (f2 * 3.141592653589793d) / 2.0d;
|
||||
sin = (float) Math.sin(d5);
|
||||
cos = (float) (1.0d - Math.cos(d5));
|
||||
}
|
||||
drawable.setBounds(AbstractC0396a.c(sin, (int) f4.left, (int) f5.left), drawable.getBounds().top, AbstractC0396a.c(cos, (int) f4.right, (int) f5.right), drawable.getBounds().bottom);
|
||||
return;
|
||||
default:
|
||||
if (f2 >= 0.5f) {
|
||||
view = view2;
|
||||
}
|
||||
RectF f6 = E2.e.f(tabLayout, view);
|
||||
float b4 = f2 < 0.5f ? AbstractC0396a.b(1.0f, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0.5f, f2) : AbstractC0396a.b(BitmapDescriptorFactory.HUE_RED, 1.0f, 0.5f, 1.0f, f2);
|
||||
drawable.setBounds((int) f6.left, drawable.getBounds().top, (int) f6.right, drawable.getBounds().bottom);
|
||||
drawable.setAlpha((int) (b4 * 255.0f));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
57
apk_decompiled/sources/H2/b.java
Normal file
57
apk_decompiled/sources/H2/b.java
Normal file
@@ -0,0 +1,57 @@
|
||||
package H2;
|
||||
|
||||
import android.animation.ValueAnimator;
|
||||
import android.widget.TextView;
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import com.google.android.material.textfield.TextInputLayout;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b implements ValueAnimator.AnimatorUpdateListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f694a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Object f695b;
|
||||
|
||||
public /* synthetic */ b(Object obj, int i) {
|
||||
this.f694a = i;
|
||||
this.f695b = obj;
|
||||
}
|
||||
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
switch (this.f694a) {
|
||||
case 0:
|
||||
((TabLayout) this.f695b).scrollTo(((Integer) valueAnimator.getAnimatedValue()).intValue(), 0);
|
||||
return;
|
||||
case 1:
|
||||
((TextInputLayout) this.f695b).f5873v0.k(((Float) valueAnimator.getAnimatedValue()).floatValue());
|
||||
return;
|
||||
case 2:
|
||||
((R1.d) this.f695b).invalidateSelf();
|
||||
return;
|
||||
case 3:
|
||||
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
|
||||
E2.g gVar = ((BottomSheetBehavior) this.f695b).i;
|
||||
if (gVar != null) {
|
||||
E2.f fVar = gVar.f400a;
|
||||
if (fVar.i != floatValue) {
|
||||
fVar.i = floatValue;
|
||||
gVar.f404e = true;
|
||||
gVar.invalidateSelf();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
float floatValue2 = ((Float) valueAnimator.getAnimatedValue()).floatValue();
|
||||
TextView textView = (TextView) this.f695b;
|
||||
textView.setScaleX(floatValue2);
|
||||
textView.setScaleY(floatValue2);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
apk_decompiled/sources/H2/c.java
Normal file
17
apk_decompiled/sources/H2/c.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package H2;
|
||||
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public boolean f696a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ TabLayout f697b;
|
||||
|
||||
public c(TabLayout tabLayout) {
|
||||
this.f697b = tabLayout;
|
||||
}
|
||||
}
|
||||
10
apk_decompiled/sources/H2/d.java
Normal file
10
apk_decompiled/sources/H2/d.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package H2;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface d {
|
||||
void onTabReselected(h hVar);
|
||||
|
||||
void onTabSelected(h hVar);
|
||||
|
||||
void onTabUnselected(h hVar);
|
||||
}
|
||||
5
apk_decompiled/sources/H2/e.java
Normal file
5
apk_decompiled/sources/H2/e.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package H2;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface e extends d {
|
||||
}
|
||||
28
apk_decompiled/sources/H2/f.java
Normal file
28
apk_decompiled/sources/H2/f.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package H2;
|
||||
|
||||
import android.animation.ValueAnimator;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class f implements ValueAnimator.AnimatorUpdateListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ View f698a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ View f699b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ g f700c;
|
||||
|
||||
public f(g gVar, View view, View view2) {
|
||||
this.f700c = gVar;
|
||||
this.f698a = view;
|
||||
this.f699b = view2;
|
||||
}
|
||||
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
this.f700c.c(this.f698a, this.f699b, valueAnimator.getAnimatedFraction());
|
||||
}
|
||||
}
|
||||
178
apk_decompiled/sources/H2/g.java
Normal file
178
apk_decompiled/sources/H2/g.java
Normal file
@@ -0,0 +1,178 @@
|
||||
package H2;
|
||||
|
||||
import O.X;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g extends LinearLayout {
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public static final /* synthetic */ int f701c = 0;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public ValueAnimator f702a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ TabLayout f703b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(TabLayout tabLayout, Context context) {
|
||||
super(context);
|
||||
this.f703b = tabLayout;
|
||||
setWillNotDraw(false);
|
||||
}
|
||||
|
||||
public final void a(int i) {
|
||||
TabLayout tabLayout = this.f703b;
|
||||
if (tabLayout.f5782T == 0 || (tabLayout.getTabSelectedIndicator().getBounds().left == -1 && tabLayout.getTabSelectedIndicator().getBounds().right == -1)) {
|
||||
View childAt = getChildAt(i);
|
||||
E2.e eVar = tabLayout.f5771H;
|
||||
Drawable drawable = tabLayout.f5796o;
|
||||
eVar.getClass();
|
||||
RectF f2 = E2.e.f(tabLayout, childAt);
|
||||
drawable.setBounds((int) f2.left, drawable.getBounds().top, (int) f2.right, drawable.getBounds().bottom);
|
||||
tabLayout.f5784a = i;
|
||||
}
|
||||
}
|
||||
|
||||
public final void b(int i) {
|
||||
TabLayout tabLayout = this.f703b;
|
||||
Rect bounds = tabLayout.f5796o.getBounds();
|
||||
tabLayout.f5796o.setBounds(bounds.left, 0, bounds.right, i);
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public final void c(View view, View view2, float f2) {
|
||||
TabLayout tabLayout = this.f703b;
|
||||
if (view == null || view.getWidth() <= 0) {
|
||||
Drawable drawable = tabLayout.f5796o;
|
||||
drawable.setBounds(-1, drawable.getBounds().top, -1, tabLayout.f5796o.getBounds().bottom);
|
||||
} else {
|
||||
tabLayout.f5771H.l(tabLayout, view, view2, f2, tabLayout.f5796o);
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
postInvalidateOnAnimation();
|
||||
}
|
||||
|
||||
public final void d(int i, int i4, boolean z3) {
|
||||
TabLayout tabLayout = this.f703b;
|
||||
if (tabLayout.f5784a == i) {
|
||||
return;
|
||||
}
|
||||
View childAt = getChildAt(tabLayout.getSelectedTabPosition());
|
||||
View childAt2 = getChildAt(i);
|
||||
if (childAt2 == null) {
|
||||
a(tabLayout.getSelectedTabPosition());
|
||||
return;
|
||||
}
|
||||
tabLayout.f5784a = i;
|
||||
f fVar = new f(this, childAt, childAt2);
|
||||
if (!z3) {
|
||||
this.f702a.removeAllUpdateListeners();
|
||||
this.f702a.addUpdateListener(fVar);
|
||||
return;
|
||||
}
|
||||
ValueAnimator valueAnimator = new ValueAnimator();
|
||||
this.f702a = valueAnimator;
|
||||
valueAnimator.setInterpolator(tabLayout.f5772I);
|
||||
valueAnimator.setDuration(i4);
|
||||
valueAnimator.setFloatValues(BitmapDescriptorFactory.HUE_RED, 1.0f);
|
||||
valueAnimator.addUpdateListener(fVar);
|
||||
valueAnimator.start();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void draw(Canvas canvas) {
|
||||
int height;
|
||||
TabLayout tabLayout = this.f703b;
|
||||
int height2 = tabLayout.f5796o.getBounds().height();
|
||||
if (height2 < 0) {
|
||||
height2 = tabLayout.f5796o.getIntrinsicHeight();
|
||||
}
|
||||
int i = tabLayout.f5764A;
|
||||
if (i == 0) {
|
||||
height = getHeight() - height2;
|
||||
height2 = getHeight();
|
||||
} else if (i != 1) {
|
||||
height = 0;
|
||||
if (i != 2) {
|
||||
height2 = i != 3 ? 0 : getHeight();
|
||||
}
|
||||
} else {
|
||||
height = (getHeight() - height2) / 2;
|
||||
height2 = (getHeight() + height2) / 2;
|
||||
}
|
||||
if (tabLayout.f5796o.getBounds().width() > 0) {
|
||||
Rect bounds = tabLayout.f5796o.getBounds();
|
||||
tabLayout.f5796o.setBounds(bounds.left, height, bounds.right, height2);
|
||||
tabLayout.f5796o.draw(canvas);
|
||||
}
|
||||
super.draw(canvas);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
ValueAnimator valueAnimator = this.f702a;
|
||||
TabLayout tabLayout = this.f703b;
|
||||
if (valueAnimator != null && valueAnimator.isRunning()) {
|
||||
d(tabLayout.getSelectedTabPosition(), -1, false);
|
||||
return;
|
||||
}
|
||||
if (tabLayout.f5784a == -1) {
|
||||
tabLayout.f5784a = tabLayout.getSelectedTabPosition();
|
||||
}
|
||||
a(tabLayout.f5784a);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
super.onMeasure(i, i4);
|
||||
if (View.MeasureSpec.getMode(i) != 1073741824) {
|
||||
return;
|
||||
}
|
||||
TabLayout tabLayout = this.f703b;
|
||||
boolean z3 = true;
|
||||
if (tabLayout.f5805y == 1 || tabLayout.f5765B == 2) {
|
||||
int childCount = getChildCount();
|
||||
int i5 = 0;
|
||||
for (int i6 = 0; i6 < childCount; i6++) {
|
||||
View childAt = getChildAt(i6);
|
||||
if (childAt.getVisibility() == 0) {
|
||||
i5 = Math.max(i5, childAt.getMeasuredWidth());
|
||||
}
|
||||
}
|
||||
if (i5 <= 0) {
|
||||
return;
|
||||
}
|
||||
if (i5 * childCount <= getMeasuredWidth() - (((int) x2.m.e(getContext(), 16)) * 2)) {
|
||||
boolean z4 = false;
|
||||
for (int i7 = 0; i7 < childCount; i7++) {
|
||||
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) getChildAt(i7).getLayoutParams();
|
||||
if (layoutParams.width != i5 || layoutParams.weight != BitmapDescriptorFactory.HUE_RED) {
|
||||
layoutParams.width = i5;
|
||||
layoutParams.weight = BitmapDescriptorFactory.HUE_RED;
|
||||
z4 = true;
|
||||
}
|
||||
}
|
||||
z3 = z4;
|
||||
} else {
|
||||
tabLayout.f5805y = 0;
|
||||
tabLayout.o(false);
|
||||
}
|
||||
if (z3) {
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
35
apk_decompiled/sources/H2/h.java
Normal file
35
apk_decompiled/sources/H2/h.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package H2;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public CharSequence f704a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f705b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public View f706c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public TabLayout f707d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public k f708e;
|
||||
|
||||
public final void a(CharSequence charSequence) {
|
||||
if (TextUtils.isEmpty(null) && !TextUtils.isEmpty(charSequence)) {
|
||||
this.f708e.setContentDescription(charSequence);
|
||||
}
|
||||
this.f704a = charSequence;
|
||||
k kVar = this.f708e;
|
||||
if (kVar != null) {
|
||||
kVar.d();
|
||||
}
|
||||
}
|
||||
}
|
||||
61
apk_decompiled/sources/H2/i.java
Normal file
61
apk_decompiled/sources/H2/i.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package H2;
|
||||
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class i implements F0.h {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final WeakReference f709a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f710b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f711c;
|
||||
|
||||
public i(TabLayout tabLayout) {
|
||||
this.f709a = new WeakReference(tabLayout);
|
||||
}
|
||||
|
||||
@Override // F0.h
|
||||
public final void a(int i) {
|
||||
this.f710b = this.f711c;
|
||||
this.f711c = i;
|
||||
TabLayout tabLayout = (TabLayout) this.f709a.get();
|
||||
if (tabLayout != null) {
|
||||
tabLayout.f5782T = this.f711c;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // F0.h
|
||||
public final void b(int i) {
|
||||
TabLayout tabLayout = (TabLayout) this.f709a.get();
|
||||
if (tabLayout == null || tabLayout.getSelectedTabPosition() == i || i >= tabLayout.getTabCount()) {
|
||||
return;
|
||||
}
|
||||
int i4 = this.f711c;
|
||||
tabLayout.k(tabLayout.g(i), i4 == 0 || (i4 == 2 && this.f710b == 0));
|
||||
}
|
||||
|
||||
@Override // F0.h
|
||||
public final void c(int i, float f2) {
|
||||
boolean z3;
|
||||
TabLayout tabLayout = (TabLayout) this.f709a.get();
|
||||
if (tabLayout != null) {
|
||||
int i4 = this.f711c;
|
||||
boolean z4 = true;
|
||||
if (i4 != 2 || this.f710b == 1) {
|
||||
z3 = true;
|
||||
} else {
|
||||
z3 = true;
|
||||
z4 = false;
|
||||
}
|
||||
if (i4 == 2 && this.f710b == 0) {
|
||||
z3 = false;
|
||||
}
|
||||
tabLayout.m(i, f2, z4, z3, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
26
apk_decompiled/sources/H2/j.java
Normal file
26
apk_decompiled/sources/H2/j.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package H2;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class j implements View.OnLayoutChangeListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ View f712a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ k f713b;
|
||||
|
||||
public j(k kVar, View view) {
|
||||
this.f713b = kVar;
|
||||
this.f712a = view;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnLayoutChangeListener
|
||||
public final void onLayoutChange(View view, int i, int i4, int i5, int i6, int i7, int i8, int i9, int i10) {
|
||||
View view2 = this.f712a;
|
||||
if (view2.getVisibility() == 0) {
|
||||
this.f713b.c(view2);
|
||||
}
|
||||
}
|
||||
}
|
||||
502
apk_decompiled/sources/H2/k.java
Normal file
502
apk_decompiled/sources/H2/k.java
Normal file
@@ -0,0 +1,502 @@
|
||||
package H2;
|
||||
|
||||
import O.AbstractC0084z;
|
||||
import O.N;
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.GradientDrawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.text.Layout;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import java.util.WeakHashMap;
|
||||
import k2.C0417a;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import m.W0;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class k extends LinearLayout {
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public static final /* synthetic */ int f714l = 0;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public h f715a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public TextView f716b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public ImageView f717c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public View f718d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public C0417a f719e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public View f720f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public TextView f721g;
|
||||
public ImageView h;
|
||||
public Drawable i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int f722j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final /* synthetic */ TabLayout f723k;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public k(TabLayout tabLayout, Context context) {
|
||||
super(context);
|
||||
this.f723k = tabLayout;
|
||||
this.f722j = 2;
|
||||
e(context);
|
||||
int i = tabLayout.f5788e;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setPaddingRelative(i, tabLayout.f5789f, tabLayout.f5790g, tabLayout.h);
|
||||
setGravity(17);
|
||||
setOrientation(!tabLayout.f5766C ? 1 : 0);
|
||||
setClickable(true);
|
||||
N.d(this, AbstractC0084z.b(getContext(), 1002));
|
||||
}
|
||||
|
||||
private C0417a getBadge() {
|
||||
return this.f719e;
|
||||
}
|
||||
|
||||
private C0417a getOrCreateBadge() {
|
||||
if (this.f719e == null) {
|
||||
this.f719e = new C0417a(getContext(), null);
|
||||
}
|
||||
b();
|
||||
C0417a c0417a = this.f719e;
|
||||
if (c0417a != null) {
|
||||
return c0417a;
|
||||
}
|
||||
throw new IllegalStateException("Unable to create badge");
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
if (this.f719e != null) {
|
||||
setClipChildren(true);
|
||||
setClipToPadding(true);
|
||||
ViewGroup viewGroup = (ViewGroup) getParent();
|
||||
if (viewGroup != null) {
|
||||
viewGroup.setClipChildren(true);
|
||||
viewGroup.setClipToPadding(true);
|
||||
}
|
||||
View view = this.f718d;
|
||||
if (view != null) {
|
||||
C0417a c0417a = this.f719e;
|
||||
if (c0417a != null) {
|
||||
if (c0417a.d() != null) {
|
||||
c0417a.d().setForeground(null);
|
||||
} else {
|
||||
view.getOverlay().remove(c0417a);
|
||||
}
|
||||
}
|
||||
this.f718d = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
if (this.f719e != null) {
|
||||
if (this.f720f != null) {
|
||||
a();
|
||||
return;
|
||||
}
|
||||
TextView textView = this.f716b;
|
||||
if (textView == null || this.f715a == null) {
|
||||
a();
|
||||
return;
|
||||
}
|
||||
if (this.f718d == textView) {
|
||||
c(textView);
|
||||
return;
|
||||
}
|
||||
a();
|
||||
TextView textView2 = this.f716b;
|
||||
if (this.f719e == null || textView2 == null) {
|
||||
return;
|
||||
}
|
||||
setClipChildren(false);
|
||||
setClipToPadding(false);
|
||||
ViewGroup viewGroup = (ViewGroup) getParent();
|
||||
if (viewGroup != null) {
|
||||
viewGroup.setClipChildren(false);
|
||||
viewGroup.setClipToPadding(false);
|
||||
}
|
||||
C0417a c0417a = this.f719e;
|
||||
Rect rect = new Rect();
|
||||
textView2.getDrawingRect(rect);
|
||||
c0417a.setBounds(rect);
|
||||
c0417a.i(textView2, null);
|
||||
if (c0417a.d() != null) {
|
||||
c0417a.d().setForeground(c0417a);
|
||||
} else {
|
||||
textView2.getOverlay().add(c0417a);
|
||||
}
|
||||
this.f718d = textView2;
|
||||
}
|
||||
}
|
||||
|
||||
public final void c(View view) {
|
||||
C0417a c0417a = this.f719e;
|
||||
if (c0417a == null || view != this.f718d) {
|
||||
return;
|
||||
}
|
||||
Rect rect = new Rect();
|
||||
view.getDrawingRect(rect);
|
||||
c0417a.setBounds(rect);
|
||||
c0417a.i(view, null);
|
||||
}
|
||||
|
||||
public final void d() {
|
||||
boolean z3;
|
||||
f();
|
||||
h hVar = this.f715a;
|
||||
if (hVar != null) {
|
||||
TabLayout tabLayout = hVar.f707d;
|
||||
if (tabLayout == null) {
|
||||
throw new IllegalArgumentException("Tab not attached to a TabLayout");
|
||||
}
|
||||
int selectedTabPosition = tabLayout.getSelectedTabPosition();
|
||||
if (selectedTabPosition != -1 && selectedTabPosition == hVar.f705b) {
|
||||
z3 = true;
|
||||
setSelected(z3);
|
||||
}
|
||||
}
|
||||
z3 = false;
|
||||
setSelected(z3);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
int[] drawableState = getDrawableState();
|
||||
Drawable drawable = this.i;
|
||||
if ((drawable == null || !drawable.isStateful()) ? false : this.i.setState(drawableState)) {
|
||||
invalidate();
|
||||
this.f723k.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r4v0, types: [android.graphics.drawable.RippleDrawable] */
|
||||
/* JADX WARN: Type inference failed for: r6v0, types: [H2.k, android.view.View] */
|
||||
public final void e(Context context) {
|
||||
TabLayout tabLayout = this.f723k;
|
||||
int i = tabLayout.f5799s;
|
||||
if (i != 0) {
|
||||
Drawable m4 = AbstractC0106b.m(context, i);
|
||||
this.i = m4;
|
||||
if (m4 != null && m4.isStateful()) {
|
||||
this.i.setState(getDrawableState());
|
||||
}
|
||||
} else {
|
||||
this.i = null;
|
||||
}
|
||||
GradientDrawable gradientDrawable = new GradientDrawable();
|
||||
gradientDrawable.setColor(0);
|
||||
if (tabLayout.f5795n != null) {
|
||||
GradientDrawable gradientDrawable2 = new GradientDrawable();
|
||||
gradientDrawable2.setCornerRadius(1.0E-5f);
|
||||
gradientDrawable2.setColor(-1);
|
||||
ColorStateList a2 = C2.a.a(tabLayout.f5795n);
|
||||
boolean z3 = tabLayout.f5770G;
|
||||
if (z3) {
|
||||
gradientDrawable = null;
|
||||
}
|
||||
gradientDrawable = new RippleDrawable(a2, gradientDrawable, z3 ? null : gradientDrawable2);
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setBackground(gradientDrawable);
|
||||
tabLayout.invalidate();
|
||||
}
|
||||
|
||||
public final void f() {
|
||||
int i;
|
||||
ViewParent parent;
|
||||
h hVar = this.f715a;
|
||||
View view = hVar != null ? hVar.f706c : null;
|
||||
if (view != null) {
|
||||
ViewParent parent2 = view.getParent();
|
||||
if (parent2 != this) {
|
||||
if (parent2 != null) {
|
||||
((ViewGroup) parent2).removeView(view);
|
||||
}
|
||||
View view2 = this.f720f;
|
||||
if (view2 != null && (parent = view2.getParent()) != null) {
|
||||
((ViewGroup) parent).removeView(this.f720f);
|
||||
}
|
||||
addView(view);
|
||||
}
|
||||
this.f720f = view;
|
||||
TextView textView = this.f716b;
|
||||
if (textView != null) {
|
||||
textView.setVisibility(8);
|
||||
}
|
||||
ImageView imageView = this.f717c;
|
||||
if (imageView != null) {
|
||||
imageView.setVisibility(8);
|
||||
this.f717c.setImageDrawable(null);
|
||||
}
|
||||
TextView textView2 = (TextView) view.findViewById(R.id.text1);
|
||||
this.f721g = textView2;
|
||||
if (textView2 != null) {
|
||||
this.f722j = textView2.getMaxLines();
|
||||
}
|
||||
this.h = (ImageView) view.findViewById(R.id.icon);
|
||||
} else {
|
||||
View view3 = this.f720f;
|
||||
if (view3 != null) {
|
||||
removeView(view3);
|
||||
this.f720f = null;
|
||||
}
|
||||
this.f721g = null;
|
||||
this.h = null;
|
||||
}
|
||||
if (this.f720f == null) {
|
||||
if (this.f717c == null) {
|
||||
ImageView imageView2 = (ImageView) LayoutInflater.from(getContext()).inflate(com.adif.elcanomovil.R.layout.design_layout_tab_icon, (ViewGroup) this, false);
|
||||
this.f717c = imageView2;
|
||||
addView(imageView2, 0);
|
||||
}
|
||||
if (this.f716b == null) {
|
||||
TextView textView3 = (TextView) LayoutInflater.from(getContext()).inflate(com.adif.elcanomovil.R.layout.design_layout_tab_text, (ViewGroup) this, false);
|
||||
this.f716b = textView3;
|
||||
addView(textView3);
|
||||
this.f722j = this.f716b.getMaxLines();
|
||||
}
|
||||
TextView textView4 = this.f716b;
|
||||
TabLayout tabLayout = this.f723k;
|
||||
textView4.setTextAppearance(tabLayout.i);
|
||||
if (!isSelected() || (i = tabLayout.f5792k) == -1) {
|
||||
this.f716b.setTextAppearance(tabLayout.f5791j);
|
||||
} else {
|
||||
this.f716b.setTextAppearance(i);
|
||||
}
|
||||
ColorStateList colorStateList = tabLayout.f5793l;
|
||||
if (colorStateList != null) {
|
||||
this.f716b.setTextColor(colorStateList);
|
||||
}
|
||||
g(this.f716b, this.f717c, true);
|
||||
b();
|
||||
ImageView imageView3 = this.f717c;
|
||||
if (imageView3 != null) {
|
||||
imageView3.addOnLayoutChangeListener(new j(this, imageView3));
|
||||
}
|
||||
TextView textView5 = this.f716b;
|
||||
if (textView5 != null) {
|
||||
textView5.addOnLayoutChangeListener(new j(this, textView5));
|
||||
}
|
||||
} else {
|
||||
TextView textView6 = this.f721g;
|
||||
if (textView6 != null || this.h != null) {
|
||||
g(textView6, this.h, false);
|
||||
}
|
||||
}
|
||||
if (hVar == null || TextUtils.isEmpty(null)) {
|
||||
return;
|
||||
}
|
||||
setContentDescription(null);
|
||||
}
|
||||
|
||||
public final void g(TextView textView, ImageView imageView, boolean z3) {
|
||||
boolean z4;
|
||||
h hVar = this.f715a;
|
||||
CharSequence charSequence = hVar != null ? hVar.f704a : null;
|
||||
if (imageView != null) {
|
||||
imageView.setVisibility(8);
|
||||
imageView.setImageDrawable(null);
|
||||
}
|
||||
boolean isEmpty = TextUtils.isEmpty(charSequence);
|
||||
if (textView != null) {
|
||||
if (isEmpty) {
|
||||
z4 = false;
|
||||
} else {
|
||||
this.f715a.getClass();
|
||||
z4 = true;
|
||||
}
|
||||
textView.setText(!isEmpty ? charSequence : null);
|
||||
textView.setVisibility(z4 ? 0 : 8);
|
||||
if (!isEmpty) {
|
||||
setVisibility(0);
|
||||
}
|
||||
} else {
|
||||
z4 = false;
|
||||
}
|
||||
if (z3 && imageView != null) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) imageView.getLayoutParams();
|
||||
int e4 = (z4 && imageView.getVisibility() == 0) ? (int) x2.m.e(getContext(), 8) : 0;
|
||||
if (this.f723k.f5766C) {
|
||||
if (e4 != marginLayoutParams.getMarginEnd()) {
|
||||
marginLayoutParams.setMarginEnd(e4);
|
||||
marginLayoutParams.bottomMargin = 0;
|
||||
imageView.setLayoutParams(marginLayoutParams);
|
||||
imageView.requestLayout();
|
||||
}
|
||||
} else if (e4 != marginLayoutParams.bottomMargin) {
|
||||
marginLayoutParams.bottomMargin = e4;
|
||||
marginLayoutParams.setMarginEnd(0);
|
||||
imageView.setLayoutParams(marginLayoutParams);
|
||||
imageView.requestLayout();
|
||||
}
|
||||
}
|
||||
W0.a(this, isEmpty ? null : charSequence);
|
||||
}
|
||||
|
||||
public int getContentHeight() {
|
||||
View[] viewArr = {this.f716b, this.f717c, this.f720f};
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
boolean z3 = false;
|
||||
for (int i5 = 0; i5 < 3; i5++) {
|
||||
View view = viewArr[i5];
|
||||
if (view != null && view.getVisibility() == 0) {
|
||||
i4 = z3 ? Math.min(i4, view.getTop()) : view.getTop();
|
||||
i = z3 ? Math.max(i, view.getBottom()) : view.getBottom();
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
return i - i4;
|
||||
}
|
||||
|
||||
public int getContentWidth() {
|
||||
View[] viewArr = {this.f716b, this.f717c, this.f720f};
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
boolean z3 = false;
|
||||
for (int i5 = 0; i5 < 3; i5++) {
|
||||
View view = viewArr[i5];
|
||||
if (view != null && view.getVisibility() == 0) {
|
||||
i4 = z3 ? Math.min(i4, view.getLeft()) : view.getLeft();
|
||||
i = z3 ? Math.max(i, view.getRight()) : view.getRight();
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
return i - i4;
|
||||
}
|
||||
|
||||
public h getTab() {
|
||||
return this.f715a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
C0417a c0417a = this.f719e;
|
||||
if (c0417a != null && c0417a.isVisible()) {
|
||||
accessibilityNodeInfo.setContentDescription(this.f719e.c());
|
||||
}
|
||||
accessibilityNodeInfo.setCollectionItemInfo(P.j.a(isSelected(), 0, 1, this.f715a.f705b, 1).f1340a);
|
||||
if (isSelected()) {
|
||||
accessibilityNodeInfo.setClickable(false);
|
||||
accessibilityNodeInfo.removeAction((AccessibilityNodeInfo.AccessibilityAction) P.f.f1330e.f1336a);
|
||||
}
|
||||
accessibilityNodeInfo.getExtras().putCharSequence("AccessibilityNodeInfo.roleDescription", getResources().getString(com.adif.elcanomovil.R.string.item_view_role_description));
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int size = View.MeasureSpec.getSize(i);
|
||||
int mode = View.MeasureSpec.getMode(i);
|
||||
TabLayout tabLayout = this.f723k;
|
||||
int tabMaxWidth = tabLayout.getTabMaxWidth();
|
||||
if (tabMaxWidth > 0 && (mode == 0 || size > tabMaxWidth)) {
|
||||
i = View.MeasureSpec.makeMeasureSpec(tabLayout.f5800t, IntCompanionObject.MIN_VALUE);
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
if (this.f716b != null) {
|
||||
float f2 = tabLayout.f5797q;
|
||||
int i5 = this.f722j;
|
||||
ImageView imageView = this.f717c;
|
||||
if (imageView == null || imageView.getVisibility() != 0) {
|
||||
TextView textView = this.f716b;
|
||||
if (textView != null && textView.getLineCount() > 1) {
|
||||
f2 = tabLayout.f5798r;
|
||||
}
|
||||
} else {
|
||||
i5 = 1;
|
||||
}
|
||||
float textSize = this.f716b.getTextSize();
|
||||
int lineCount = this.f716b.getLineCount();
|
||||
int maxLines = this.f716b.getMaxLines();
|
||||
if (f2 != textSize || (maxLines >= 0 && i5 != maxLines)) {
|
||||
if (tabLayout.f5765B == 1 && f2 > textSize && lineCount == 1) {
|
||||
Layout layout = this.f716b.getLayout();
|
||||
if (layout == null) {
|
||||
return;
|
||||
}
|
||||
if ((f2 / layout.getPaint().getTextSize()) * layout.getLineWidth(0) > (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.f716b.setTextSize(0, f2);
|
||||
this.f716b.setMaxLines(i5);
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean performClick() {
|
||||
boolean performClick = super.performClick();
|
||||
if (this.f715a == null) {
|
||||
return performClick;
|
||||
}
|
||||
if (!performClick) {
|
||||
playSoundEffect(0);
|
||||
}
|
||||
h hVar = this.f715a;
|
||||
TabLayout tabLayout = hVar.f707d;
|
||||
if (tabLayout == null) {
|
||||
throw new IllegalArgumentException("Tab not attached to a TabLayout");
|
||||
}
|
||||
tabLayout.k(hVar, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setSelected(boolean z3) {
|
||||
isSelected();
|
||||
super.setSelected(z3);
|
||||
TextView textView = this.f716b;
|
||||
if (textView != null) {
|
||||
textView.setSelected(z3);
|
||||
}
|
||||
ImageView imageView = this.f717c;
|
||||
if (imageView != null) {
|
||||
imageView.setSelected(z3);
|
||||
}
|
||||
View view = this.f720f;
|
||||
if (view != null) {
|
||||
view.setSelected(z3);
|
||||
}
|
||||
}
|
||||
|
||||
public void setTab(h hVar) {
|
||||
if (hVar != this.f715a) {
|
||||
this.f715a = hVar;
|
||||
d();
|
||||
}
|
||||
}
|
||||
}
|
||||
54
apk_decompiled/sources/H2/l.java
Normal file
54
apk_decompiled/sources/H2/l.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package H2;
|
||||
|
||||
import android.view.ViewGroup;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
import androidx.viewpager2.widget.ViewPager2;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class l implements e {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f724a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final ViewGroup f725b;
|
||||
|
||||
public /* synthetic */ l(ViewGroup viewGroup, int i) {
|
||||
this.f724a = i;
|
||||
this.f725b = viewGroup;
|
||||
}
|
||||
|
||||
private final void a(h hVar) {
|
||||
}
|
||||
|
||||
private final void b(h hVar) {
|
||||
}
|
||||
|
||||
private final void c(h hVar) {
|
||||
}
|
||||
|
||||
private final void d(h hVar) {
|
||||
}
|
||||
|
||||
@Override // H2.d
|
||||
public final void onTabReselected(h hVar) {
|
||||
int i = this.f724a;
|
||||
}
|
||||
|
||||
@Override // H2.d
|
||||
public final void onTabSelected(h hVar) {
|
||||
switch (this.f724a) {
|
||||
case 0:
|
||||
((ViewPager) this.f725b).setCurrentItem(hVar.f705b);
|
||||
return;
|
||||
default:
|
||||
((ViewPager2) this.f725b).b(hVar.f705b);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // H2.d
|
||||
public final void onTabUnselected(h hVar) {
|
||||
int i = this.f724a;
|
||||
}
|
||||
}
|
||||
186
apk_decompiled/sources/H2/m.java
Normal file
186
apk_decompiled/sources/H2/m.java
Normal file
@@ -0,0 +1,186 @@
|
||||
package H2;
|
||||
|
||||
import O.X;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.AbstractC0224j0;
|
||||
import androidx.recyclerview.widget.C0207b;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import java.util.ArrayList;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class m extends AbstractC0224j0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f726a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Object f727b;
|
||||
|
||||
public /* synthetic */ m(Object obj, int i) {
|
||||
this.f726a = i;
|
||||
this.f727b = obj;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public final void a() {
|
||||
switch (this.f726a) {
|
||||
case 0:
|
||||
((o) this.f727b).b();
|
||||
return;
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
recyclerView.l(null);
|
||||
recyclerView.f3686h0.f3514f = true;
|
||||
recyclerView.a0(true);
|
||||
if (recyclerView.f3680e.j()) {
|
||||
return;
|
||||
}
|
||||
recyclerView.requestLayout();
|
||||
return;
|
||||
default:
|
||||
((androidx.viewpager2.adapter.d) this.f727b).b(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public final void b(int i, int i4, Object obj) {
|
||||
switch (this.f726a) {
|
||||
case 0:
|
||||
((o) this.f727b).b();
|
||||
return;
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
recyclerView.l(null);
|
||||
C0207b c0207b = recyclerView.f3680e;
|
||||
if (i4 < 1) {
|
||||
c0207b.getClass();
|
||||
return;
|
||||
}
|
||||
ArrayList arrayList = (ArrayList) c0207b.f3789c;
|
||||
arrayList.add(c0207b.l(4, i, i4, obj));
|
||||
c0207b.f3787a |= 4;
|
||||
if (arrayList.size() == 1) {
|
||||
g();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
a();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public final void c(int i, int i4) {
|
||||
switch (this.f726a) {
|
||||
case 0:
|
||||
((o) this.f727b).b();
|
||||
return;
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
recyclerView.l(null);
|
||||
C0207b c0207b = recyclerView.f3680e;
|
||||
if (i4 < 1) {
|
||||
c0207b.getClass();
|
||||
return;
|
||||
}
|
||||
ArrayList arrayList = (ArrayList) c0207b.f3789c;
|
||||
arrayList.add(c0207b.l(1, i, i4, null));
|
||||
c0207b.f3787a |= 1;
|
||||
if (arrayList.size() == 1) {
|
||||
g();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
a();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public final void d(int i, int i4) {
|
||||
switch (this.f726a) {
|
||||
case 0:
|
||||
((o) this.f727b).b();
|
||||
return;
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
recyclerView.l(null);
|
||||
C0207b c0207b = recyclerView.f3680e;
|
||||
c0207b.getClass();
|
||||
if (i == i4) {
|
||||
return;
|
||||
}
|
||||
ArrayList arrayList = (ArrayList) c0207b.f3789c;
|
||||
arrayList.add(c0207b.l(8, i, i4, null));
|
||||
c0207b.f3787a |= 8;
|
||||
if (arrayList.size() == 1) {
|
||||
g();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
a();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public final void e(int i, int i4) {
|
||||
switch (this.f726a) {
|
||||
case 0:
|
||||
((o) this.f727b).b();
|
||||
return;
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
recyclerView.l(null);
|
||||
C0207b c0207b = recyclerView.f3680e;
|
||||
if (i4 < 1) {
|
||||
c0207b.getClass();
|
||||
return;
|
||||
}
|
||||
ArrayList arrayList = (ArrayList) c0207b.f3789c;
|
||||
arrayList.add(c0207b.l(2, i, i4, null));
|
||||
c0207b.f3787a |= 2;
|
||||
if (arrayList.size() == 1) {
|
||||
g();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
a();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0224j0
|
||||
public void f() {
|
||||
AbstractC0220h0 abstractC0220h0;
|
||||
switch (this.f726a) {
|
||||
case 1:
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
if (recyclerView.f3678d == null || (abstractC0220h0 = recyclerView.f3694m) == null || !abstractC0220h0.canRestoreState()) {
|
||||
return;
|
||||
}
|
||||
recyclerView.requestLayout();
|
||||
return;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public void g() {
|
||||
boolean z3 = RecyclerView.f3645F0;
|
||||
RecyclerView recyclerView = (RecyclerView) this.f727b;
|
||||
if (z3 && recyclerView.f3707t && recyclerView.f3705s) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
recyclerView.postOnAnimation(recyclerView.i);
|
||||
} else {
|
||||
recyclerView.f3650A = true;
|
||||
recyclerView.requestLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
61
apk_decompiled/sources/H2/n.java
Normal file
61
apk_decompiled/sources/H2/n.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package H2;
|
||||
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class n extends H0.j {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final WeakReference f728a;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f730c = 0;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f729b = 0;
|
||||
|
||||
public n(TabLayout tabLayout) {
|
||||
this.f728a = new WeakReference(tabLayout);
|
||||
}
|
||||
|
||||
@Override // H0.j
|
||||
public final void a(int i) {
|
||||
this.f729b = this.f730c;
|
||||
this.f730c = i;
|
||||
TabLayout tabLayout = (TabLayout) this.f728a.get();
|
||||
if (tabLayout != null) {
|
||||
tabLayout.f5782T = this.f730c;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // H0.j
|
||||
public final void b(int i, float f2, int i4) {
|
||||
boolean z3;
|
||||
TabLayout tabLayout = (TabLayout) this.f728a.get();
|
||||
if (tabLayout != null) {
|
||||
int i5 = this.f730c;
|
||||
boolean z4 = true;
|
||||
if (i5 != 2 || this.f729b == 1) {
|
||||
z3 = true;
|
||||
} else {
|
||||
z3 = true;
|
||||
z4 = false;
|
||||
}
|
||||
if (i5 == 2 && this.f729b == 0) {
|
||||
z3 = false;
|
||||
}
|
||||
tabLayout.m(i, f2, z4, z3, false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // H0.j
|
||||
public final void c(int i) {
|
||||
TabLayout tabLayout = (TabLayout) this.f728a.get();
|
||||
if (tabLayout == null || tabLayout.getSelectedTabPosition() == i || i >= tabLayout.getTabCount()) {
|
||||
return;
|
||||
}
|
||||
int i4 = this.f730c;
|
||||
tabLayout.k(tabLayout.g(i), i4 == 0 || (i4 == 2 && this.f729b == 0));
|
||||
}
|
||||
}
|
||||
83
apk_decompiled/sources/H2/o.java
Normal file
83
apk_decompiled/sources/H2/o.java
Normal file
@@ -0,0 +1,83 @@
|
||||
package H2;
|
||||
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.viewpager2.widget.ViewPager2;
|
||||
import com.adif.elcanomovil.uiDepartures.main.DeparturesFragment;
|
||||
import com.adif.elcanomovil.uiStations.main.StationsFragment;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class o {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TabLayout f731a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final ViewPager2 f732b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final I2.k f733c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public AbstractC0220h0 f734d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f735e;
|
||||
|
||||
public o(TabLayout tabLayout, ViewPager2 viewPager2, I2.k kVar) {
|
||||
this.f731a = tabLayout;
|
||||
this.f732b = viewPager2;
|
||||
this.f733c = kVar;
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
if (this.f735e) {
|
||||
throw new IllegalStateException("TabLayoutMediator is already attached");
|
||||
}
|
||||
ViewPager2 viewPager2 = this.f732b;
|
||||
AbstractC0220h0 adapter = viewPager2.getAdapter();
|
||||
this.f734d = adapter;
|
||||
if (adapter == null) {
|
||||
throw new IllegalStateException("TabLayoutMediator attached before ViewPager2 has an adapter");
|
||||
}
|
||||
this.f735e = true;
|
||||
TabLayout tabLayout = this.f731a;
|
||||
((ArrayList) viewPager2.f4080c.f632b).add(new n(tabLayout));
|
||||
tabLayout.a(new l(viewPager2, 1));
|
||||
this.f734d.registerAdapterDataObserver(new m(this, 0));
|
||||
b();
|
||||
tabLayout.m(viewPager2.getCurrentItem(), BitmapDescriptorFactory.HUE_RED, true, true, true);
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
TabLayout tabLayout = this.f731a;
|
||||
tabLayout.j();
|
||||
AbstractC0220h0 abstractC0220h0 = this.f734d;
|
||||
if (abstractC0220h0 != null) {
|
||||
int itemCount = abstractC0220h0.getItemCount();
|
||||
for (int i = 0; i < itemCount; i++) {
|
||||
h h = tabLayout.h();
|
||||
I2.k kVar = this.f733c;
|
||||
int i4 = kVar.f822a;
|
||||
Object obj = kVar.f823b;
|
||||
switch (i4) {
|
||||
case 10:
|
||||
DeparturesFragment.configureTabLayout$lambda$0((DeparturesFragment) obj, h, i);
|
||||
break;
|
||||
default:
|
||||
StationsFragment.configureTabLayout$lambda$0((StationsFragment) obj, h, i);
|
||||
break;
|
||||
}
|
||||
tabLayout.b(h, false);
|
||||
}
|
||||
if (itemCount > 0) {
|
||||
int min = Math.min(this.f732b.getCurrentItem(), tabLayout.getTabCount() - 1);
|
||||
if (min != tabLayout.getSelectedTabPosition()) {
|
||||
tabLayout.k(tabLayout.g(min), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user