107 lines
3.6 KiB
Java
107 lines
3.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Insets;
|
||
|
import android.os.Build;
|
||
|
import android.util.DisplayMetrics;
|
||
|
import android.view.WindowInsets;
|
||
|
import android.view.WindowManager;
|
||
|
import android.view.WindowMetrics;
|
||
|
import com.google.android.material.tabs.TabLayout;
|
||
|
import java.util.HashMap;
|
||
|
import o.MrX;
|
||
|
|
||
|
/* renamed from: o.eqJ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12016eqJ implements MrX.Sts {
|
||
|
private final Float a;
|
||
|
private final int[] b;
|
||
|
private final boolean c;
|
||
|
private final Context d;
|
||
|
public HashMap<Integer, TabLayout.RVV> e;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C12016eqJ(Context context, int[] iArr, Float f, boolean z) {
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(iArr, "");
|
||
|
this.d = context;
|
||
|
this.b = iArr;
|
||
|
this.a = f;
|
||
|
this.c = z;
|
||
|
this.e = new HashMap<>();
|
||
|
}
|
||
|
|
||
|
@Override // o.MrX.Sts
|
||
|
public final void b(TabLayout.RVV rvv, int i) {
|
||
|
int i2;
|
||
|
C14957gcv.e(rvv, "");
|
||
|
if (this.c) {
|
||
|
HashMap<Integer, TabLayout.RVV> hashMap = this.e;
|
||
|
C5745byp c = rvv.c();
|
||
|
int color = nMh.getColor(this.d, com.scb.phone.R.color.f2852131099792);
|
||
|
Tjw tjw = c.b;
|
||
|
tjw.n.a = Integer.valueOf(color);
|
||
|
tjw.h.a = Integer.valueOf(color);
|
||
|
c.e();
|
||
|
int d = C6583cXR.d(-8, this.d);
|
||
|
Tjw tjw2 = c.b;
|
||
|
tjw2.n.s = Integer.valueOf(d);
|
||
|
tjw2.h.s = Integer.valueOf(d);
|
||
|
c.c();
|
||
|
Tjw tjw3 = c.b;
|
||
|
tjw3.n.q = Integer.valueOf(d);
|
||
|
tjw3.h.q = Integer.valueOf(d);
|
||
|
c.c();
|
||
|
int d2 = C6583cXR.d(4, this.d);
|
||
|
Tjw tjw4 = c.b;
|
||
|
tjw4.n.v = Integer.valueOf(d2);
|
||
|
tjw4.h.v = Integer.valueOf(d2);
|
||
|
c.c();
|
||
|
Tjw tjw5 = c.b;
|
||
|
tjw5.n.u = Integer.valueOf(d2);
|
||
|
tjw5.h.u = Integer.valueOf(d2);
|
||
|
c.c();
|
||
|
c.d(false);
|
||
|
hashMap.put(Integer.valueOf(i), rvv);
|
||
|
}
|
||
|
Float f = this.a;
|
||
|
if (f != null) {
|
||
|
float floatValue = f.floatValue();
|
||
|
TabLayout.TabView tabView = rvv.g;
|
||
|
Context context = this.d;
|
||
|
C14957gcv.e(context, "");
|
||
|
Object systemService = context.getSystemService("window");
|
||
|
C14957gcv.d(systemService, "");
|
||
|
WindowManager windowManager = (WindowManager) systemService;
|
||
|
if (Build.VERSION.SDK_INT >= 30) {
|
||
|
WindowMetrics currentWindowMetrics = windowManager.getCurrentWindowMetrics();
|
||
|
C14957gcv.c(currentWindowMetrics, "");
|
||
|
Insets insetsIgnoringVisibility = currentWindowMetrics.getWindowInsets().getInsetsIgnoringVisibility(WindowInsets.Type.systemBars());
|
||
|
C14957gcv.c(insetsIgnoringVisibility, "");
|
||
|
i2 = (currentWindowMetrics.getBounds().width() - insetsIgnoringVisibility.left) - insetsIgnoringVisibility.right;
|
||
|
} else {
|
||
|
DisplayMetrics displayMetrics = new DisplayMetrics();
|
||
|
windowManager.getDefaultDisplay().getMetrics(displayMetrics);
|
||
|
i2 = displayMetrics.widthPixels;
|
||
|
}
|
||
|
tabView.setMinimumWidth((int) (i2 / floatValue));
|
||
|
}
|
||
|
rvv.c(this.b[i]);
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.eqJ$RVV */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class RVV {
|
||
|
private RVV() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ RVV(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new RVV((byte) 0);
|
||
|
}
|
||
|
}
|