what-the-bank/sources/o/lql.java

882 lines
29 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.animation.TimeInterpolator;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.os.Build;
import android.text.Layout;
import android.text.StaticLayout;
import android.text.TextDirectionHeuristic;
import android.text.TextDirectionHeuristics;
import android.text.TextPaint;
import android.text.TextUtils;
import android.view.View;
import androidx.core.view.ViewCompat;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import o.C16116lPK;
import o.Obm;
/* loaded from: classes2.dex */
public final class lql {
private final Rect A;
private boolean C;
private float D;
private float E;
private float F;
private ColorStateList G;
private C16116lPK H;
private float I;
private Typeface J;
private float K;
private float L;
private float M;
private float N;
private final RectF O;
private float P;
private Typeface Q;
private Typeface R;
private float S;
private float T;
private float U;
private int V;
private float W;
private float X;
private float Y;
private Typeface Z;
private float aa;
private float ab;
private final Rect ac;
private ColorStateList ad;
private float ae;
private float af;
private C16116lPK ag;
private float ah;
private Typeface ai;
private Typeface aj;
private boolean ak;
private float al;
private float am;
private boolean an;
private CharSequence ao;
private CharSequence ap;
private final TextPaint aq;
private StaticLayout ar;
private final View at;
public int c;
public float d;
public ColorStateList e;
public float g;
public int h;
public ColorStateList j;
public float k;
public boolean l;
public Bitmap m;
public float n;
/* renamed from: o, reason: collision with root package name */
public Typeface f9209o;
public TimeInterpolator u;
public CharSequence v;
public int[] w;
public TimeInterpolator x;
public InterfaceC8624dQw y;
public final TextPaint z;
public int i = 16;
public int b = 16;
public float f = 15.0f;
public float a = 15.0f;
public TextUtils.TruncateAt B = TextUtils.TruncateAt.END;
public boolean t = true;
public int p = 1;
public float s = BitmapDescriptorFactory.HUE_RED;
public float r = 1.0f;
public int q = Obm.e;
public lql(View view) {
this.at = view;
TextPaint textPaint = new TextPaint(129);
this.aq = textPaint;
this.z = new TextPaint(textPaint);
this.A = new Rect();
this.ac = new Rect();
this.O = new RectF();
float f = this.k;
this.n = f + ((1.0f - f) * 0.5f);
JP_(view.getContext().getResources().getConfiguration());
}
public final void c(int i, int i2, int i3, int i4) {
if (JK_(this.ac, i, i2, i3, i4)) {
return;
}
this.ac.set(i, i2, i3, i4);
this.C = true;
}
public final void a(int i, int i2, int i3, int i4) {
if (JK_(this.A, i, i2, i3, i4)) {
return;
}
this.A.set(i, i2, i3, i4);
this.C = true;
}
public final void JO_(RectF rectF, int i, int i2) {
float f;
float f2;
float f3;
float f4;
float f5;
float f6;
int i3;
int i4;
boolean a = a(this.v);
this.ak = a;
if (i2 != 17 && (i2 & 7) != 1) {
if ((i2 & 8388613) == 8388613 || (i2 & 5) == 5) {
if (a) {
i4 = this.A.left;
f3 = i4;
} else {
f = this.A.right;
f2 = this.K;
}
} else if (a) {
f = this.A.right;
f2 = this.K;
} else {
i4 = this.A.left;
f3 = i4;
}
rectF.left = Math.max(f3, this.A.left);
rectF.top = this.A.top;
if (i2 == 17 && (i2 & 7) != 1) {
if ((i2 & 8388613) == 8388613 || (i2 & 5) == 5) {
if (this.ak) {
f4 = rectF.left;
f5 = this.K;
} else {
i3 = this.A.right;
f6 = i3;
}
} else if (this.ak) {
i3 = this.A.right;
f6 = i3;
} else {
f4 = rectF.left;
f5 = this.K;
}
rectF.right = Math.min(f6, this.A.right);
float f7 = this.A.top;
TextPaint textPaint = this.z;
textPaint.setTextSize(this.a);
textPaint.setTypeface(this.J);
textPaint.setLetterSpacing(this.I);
rectF.bottom = f7 - this.z.ascent();
}
f4 = i / 2.0f;
f5 = this.K / 2.0f;
f6 = f4 + f5;
rectF.right = Math.min(f6, this.A.right);
float f72 = this.A.top;
TextPaint textPaint2 = this.z;
textPaint2.setTextSize(this.a);
textPaint2.setTypeface(this.J);
textPaint2.setLetterSpacing(this.I);
rectF.bottom = f72 - this.z.ascent();
}
f = i / 2.0f;
f2 = this.K / 2.0f;
f3 = f - f2;
rectF.left = Math.max(f3, this.A.left);
rectF.top = this.A.top;
if (i2 == 17) {
}
f4 = i / 2.0f;
f5 = this.K / 2.0f;
f6 = f4 + f5;
rectF.right = Math.min(f6, this.A.right);
float f722 = this.A.top;
TextPaint textPaint22 = this.z;
textPaint22.setTextSize(this.a);
textPaint22.setTypeface(this.J);
textPaint22.setLetterSpacing(this.I);
rectF.bottom = f722 - this.z.ascent();
}
public final float d() {
TextPaint textPaint = this.z;
textPaint.setTextSize(this.a);
textPaint.setTypeface(this.J);
textPaint.setLetterSpacing(this.I);
return -this.z.ascent();
}
public final void a(int i) {
Rzh rzh = new Rzh(this.at.getContext(), i);
if (rzh.g != null) {
this.e = rzh.g;
}
if (rzh.h != BitmapDescriptorFactory.HUE_RED) {
this.a = rzh.h;
}
if (rzh.b != null) {
this.G = rzh.b;
}
this.E = rzh.f;
this.N = rzh.j;
this.M = rzh.i;
this.I = rzh.d;
C16116lPK c16116lPK = this.H;
if (c16116lPK != null) {
c16116lPK.c = true;
}
C16116lPK.LWm lWm = new C16116lPK.LWm(this) { // from class: o.lql.2
private lql a;
{
this.a = this;
}
@Override // o.C16116lPK.LWm
public final void Ks_(Typeface typeface) {
lql lqlVar = this.a;
if (lqlVar.JL_(typeface)) {
lqlVar.c(false);
}
}
};
rzh.d();
this.H = new C16116lPK(lWm, rzh.e);
rzh.b(this.at.getContext(), this.H);
c(false);
}
public final void b(int i) {
Rzh rzh = new Rzh(this.at.getContext(), i);
if (rzh.g != null) {
this.j = rzh.g;
}
if (rzh.h != BitmapDescriptorFactory.HUE_RED) {
this.f = rzh.h;
}
if (rzh.b != null) {
this.ad = rzh.b;
}
this.ae = rzh.f;
this.ah = rzh.j;
this.af = rzh.i;
this.g = rzh.d;
C16116lPK c16116lPK = this.ag;
if (c16116lPK != null) {
c16116lPK.c = true;
}
C16116lPK.LWm lWm = new C16116lPK.LWm(this) { // from class: o.lql.4
private lql c;
{
this.c = this;
}
@Override // o.C16116lPK.LWm
public final void Ks_(Typeface typeface) {
lql lqlVar = this.c;
if (lqlVar.JM_(typeface)) {
lqlVar.c(false);
}
}
};
rzh.d();
this.ag = new C16116lPK(lWm, rzh.e);
rzh.b(this.at.getContext(), this.ag);
c(false);
}
public final void JP_(Configuration configuration) {
if (Build.VERSION.SDK_INT >= 31) {
Typeface typeface = this.R;
if (typeface != null) {
this.Q = FDA.KF_(configuration, typeface);
}
Typeface typeface2 = this.ai;
if (typeface2 != null) {
this.aj = FDA.KF_(configuration, typeface2);
}
Typeface typeface3 = this.Q;
if (typeface3 == null) {
typeface3 = this.R;
}
this.J = typeface3;
Typeface typeface4 = this.aj;
if (typeface4 == null) {
typeface4 = this.ai;
}
this.f9209o = typeface4;
c(true);
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x000b, code lost:
if (r3 > 1.0f) goto L4;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void d(float r3) {
/*
r2 = this;
r0 = 0
int r1 = (r3 > r0 ? 1 : (r3 == r0 ? 0 : -1))
if (r1 >= 0) goto L7
L5:
r3 = r0
goto Le
L7:
r0 = 1065353216(0x3f800000, float:1.0)
int r1 = (r3 > r0 ? 1 : (r3 == r0 ? 0 : -1))
if (r1 <= 0) goto Le
goto L5
Le:
float r0 = r2.d
int r0 = (r3 > r0 ? 1 : (r3 == r0 ? 0 : -1))
if (r0 == 0) goto L19
r2.d = r3
r2.b(r3)
L19:
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.lql.d(float):void");
}
public final boolean b() {
ColorStateList colorStateList;
ColorStateList colorStateList2 = this.e;
return (colorStateList2 != null && colorStateList2.isStateful()) || ((colorStateList = this.j) != null && colorStateList.isStateful());
}
public final void b(float f) {
float f2;
int defaultColor;
TextPaint textPaint;
int i;
int defaultColor2;
int defaultColor3;
int defaultColor4;
e(f);
int i2 = 0;
if (!this.l) {
float f3 = this.ab;
float f4 = this.D;
TimeInterpolator timeInterpolator = this.u;
this.S = f3 + ((timeInterpolator != null ? timeInterpolator.getInterpolation(f) : f) * (f4 - f3));
float f5 = this.aa;
float f6 = this.F;
TimeInterpolator timeInterpolator2 = this.u;
this.P = f5 + ((timeInterpolator2 != null ? timeInterpolator2.getInterpolation(f) : f) * (f6 - f5));
b(f, false);
this.an = false;
ViewCompat.N(this.at);
f2 = f;
} else if (f >= this.n) {
this.S = this.D;
this.P = this.F - Math.max(0, this.c);
b(1.0f, false);
this.an = false;
ViewCompat.N(this.at);
f2 = 1.0f;
} else {
this.S = this.ab;
this.P = this.aa;
b(BitmapDescriptorFactory.HUE_RED, false);
this.an = false;
ViewCompat.N(this.at);
f2 = 0.0f;
}
TimeInterpolator timeInterpolator3 = C6217cMa.d;
float f7 = 1.0f - f;
if (timeInterpolator3 != null) {
f7 = timeInterpolator3.getInterpolation(f7);
}
this.L = 1.0f - (f7 + BitmapDescriptorFactory.HUE_RED);
ViewCompat.N(this.at);
TimeInterpolator timeInterpolator4 = C6217cMa.d;
this.am = 1.0f - (timeInterpolator4 != null ? timeInterpolator4.getInterpolation(f) : f);
ViewCompat.N(this.at);
ColorStateList colorStateList = this.e;
ColorStateList colorStateList2 = this.j;
if (colorStateList == colorStateList2) {
TextPaint textPaint2 = this.aq;
if (colorStateList == null) {
textPaint = textPaint2;
i = 0;
} else {
int[] iArr = this.w;
if (iArr != null) {
defaultColor = colorStateList.getColorForState(iArr, 0);
} else {
defaultColor = colorStateList.getDefaultColor();
}
int i3 = defaultColor;
textPaint = textPaint2;
i = i3;
}
} else {
textPaint = this.aq;
if (colorStateList2 == null) {
defaultColor3 = 0;
} else {
int[] iArr2 = this.w;
if (iArr2 != null) {
defaultColor3 = colorStateList2.getColorForState(iArr2, 0);
} else {
defaultColor3 = colorStateList2.getDefaultColor();
}
}
ColorStateList colorStateList3 = this.e;
if (colorStateList3 == null) {
defaultColor4 = 0;
} else {
int[] iArr3 = this.w;
if (iArr3 != null) {
defaultColor4 = colorStateList3.getColorForState(iArr3, 0);
} else {
defaultColor4 = colorStateList3.getDefaultColor();
}
}
i = b(defaultColor3, defaultColor4, f2);
}
textPaint.setColor(i);
float f8 = this.I;
float f9 = this.g;
if (f8 != f9) {
TextPaint textPaint3 = this.aq;
TimeInterpolator timeInterpolator5 = C6217cMa.d;
textPaint3.setLetterSpacing(f9 + ((timeInterpolator5 != null ? timeInterpolator5.getInterpolation(f) : f) * (f8 - f9)));
} else {
this.aq.setLetterSpacing(f8);
}
float f10 = this.af;
this.X = f10 + ((this.M - f10) * f);
float f11 = this.ae;
this.T = f11 + ((this.E - f11) * f);
float f12 = this.ah;
this.W = f12 + ((this.N - f12) * f);
ColorStateList colorStateList4 = this.ad;
if (colorStateList4 == null) {
defaultColor2 = 0;
} else {
int[] iArr4 = this.w;
if (iArr4 != null) {
defaultColor2 = colorStateList4.getColorForState(iArr4, 0);
} else {
defaultColor2 = colorStateList4.getDefaultColor();
}
}
ColorStateList colorStateList5 = this.G;
if (colorStateList5 != null) {
int[] iArr5 = this.w;
if (iArr5 != null) {
i2 = colorStateList5.getColorForState(iArr5, 0);
} else {
i2 = colorStateList5.getDefaultColor();
}
}
int b = b(defaultColor2, i2, f);
this.V = b;
this.aq.setShadowLayer(this.X, this.T, this.W, b);
if (this.l) {
this.aq.setAlpha((int) (c(f) * this.aq.getAlpha()));
}
ViewCompat.N(this.at);
}
private float c(float f) {
float f2 = this.n;
if (f <= f2) {
return C6217cMa.b(1.0f, BitmapDescriptorFactory.HUE_RED, this.k, f2, f);
}
return C6217cMa.b(BitmapDescriptorFactory.HUE_RED, 1.0f, f2, 1.0f, f);
}
private void a(boolean z) {
StaticLayout staticLayout;
b(1.0f, z);
CharSequence charSequence = this.ap;
if (charSequence != null && (staticLayout = this.ar) != null) {
this.ao = TextUtils.ellipsize(charSequence, this.aq, staticLayout.getWidth(), this.B);
}
CharSequence charSequence2 = this.ao;
float f = BitmapDescriptorFactory.HUE_RED;
if (charSequence2 != null) {
this.K = this.aq.measureText(charSequence2, 0, charSequence2.length());
} else {
this.K = BitmapDescriptorFactory.HUE_RED;
}
int c = HpP.c(this.b, this.ak ? 1 : 0);
int i = c & 112;
if (i == 48) {
this.F = this.A.top;
} else if (i == 80) {
this.F = this.A.bottom + this.aq.ascent();
} else {
this.F = this.A.centerY() - ((this.aq.descent() - this.aq.ascent()) / 2.0f);
}
int i2 = c & 8388615;
if (i2 == 1) {
this.D = this.A.centerX() - (this.K / 2.0f);
} else if (i2 == 5) {
this.D = this.A.right - this.K;
} else {
this.D = this.A.left;
}
b(BitmapDescriptorFactory.HUE_RED, z);
float height = this.ar != null ? r11.getHeight() : 0.0f;
StaticLayout staticLayout2 = this.ar;
if (staticLayout2 == null || this.p <= 1) {
CharSequence charSequence3 = this.ap;
if (charSequence3 != null) {
f = this.aq.measureText(charSequence3, 0, charSequence3.length());
}
} else {
f = staticLayout2.getWidth();
}
StaticLayout staticLayout3 = this.ar;
this.h = staticLayout3 != null ? staticLayout3.getLineCount() : 0;
int c2 = HpP.c(this.i, this.ak ? 1 : 0);
int i3 = c2 & 112;
if (i3 == 48) {
this.aa = this.ac.top;
} else if (i3 != 80) {
this.aa = this.ac.centerY() - (height / 2.0f);
} else {
this.aa = (this.ac.bottom - height) + this.aq.descent();
}
int i4 = c2 & 8388615;
if (i4 == 1) {
this.ab = this.ac.centerX() - (f / 2.0f);
} else if (i4 == 5) {
this.ab = this.ac.right - f;
} else {
this.ab = this.ac.left;
}
b(this.d, false);
this.an = false;
ViewCompat.N(this.at);
}
private void e(float f) {
if (this.l) {
this.O.set(f < this.n ? this.ac : this.A);
return;
}
RectF rectF = this.O;
float f2 = this.ac.left;
float f3 = this.A.left;
TimeInterpolator timeInterpolator = this.u;
rectF.left = f2 + ((timeInterpolator != null ? timeInterpolator.getInterpolation(f) : f) * (f3 - f2));
RectF rectF2 = this.O;
float f4 = this.aa;
float f5 = this.F;
TimeInterpolator timeInterpolator2 = this.u;
rectF2.top = f4 + ((timeInterpolator2 != null ? timeInterpolator2.getInterpolation(f) : f) * (f5 - f4));
RectF rectF3 = this.O;
float f6 = this.ac.right;
float f7 = this.A.right;
TimeInterpolator timeInterpolator3 = this.u;
rectF3.right = f6 + ((timeInterpolator3 != null ? timeInterpolator3.getInterpolation(f) : f) * (f7 - f6));
RectF rectF4 = this.O;
float f8 = this.ac.bottom;
float f9 = this.A.bottom;
TimeInterpolator timeInterpolator4 = this.u;
if (timeInterpolator4 != null) {
f = timeInterpolator4.getInterpolation(f);
}
rectF4.bottom = f8 + (f * (f9 - f8));
}
public final void JN_(Canvas canvas) {
int save = canvas.save();
if (this.ap == null || this.O.width() <= BitmapDescriptorFactory.HUE_RED || this.O.height() <= BitmapDescriptorFactory.HUE_RED) {
return;
}
this.aq.setTextSize(this.Y);
float f = this.S;
float f2 = this.P;
float f3 = this.al;
if (f3 != 1.0f && !this.l) {
canvas.scale(f3, f3, f, f2);
}
if (c() && (!this.l || this.d > this.n)) {
JJ_(canvas, this.S - this.ar.getLineStart(0), f2);
} else {
canvas.translate(f, f2);
this.ar.draw(canvas);
}
canvas.restoreToCount(save);
}
private void JJ_(Canvas canvas, float f, float f2) {
int alpha = this.aq.getAlpha();
canvas.translate(f, f2);
if (!this.l) {
this.aq.setAlpha((int) (this.am * alpha));
if (Build.VERSION.SDK_INT >= 31) {
TextPaint textPaint = this.aq;
float f3 = this.X;
float f4 = this.T;
float f5 = this.W;
int i = this.V;
textPaint.setShadowLayer(f3, f4, f5, Rez.d(i, (Color.alpha(i) * textPaint.getAlpha()) / 255));
}
this.ar.draw(canvas);
}
if (!this.l) {
this.aq.setAlpha((int) (this.L * alpha));
}
if (Build.VERSION.SDK_INT >= 31) {
TextPaint textPaint2 = this.aq;
float f6 = this.X;
float f7 = this.T;
float f8 = this.W;
int i2 = this.V;
textPaint2.setShadowLayer(f6, f7, f8, Rez.d(i2, (Color.alpha(i2) * textPaint2.getAlpha()) / 255));
}
int lineBaseline = this.ar.getLineBaseline(0);
CharSequence charSequence = this.ao;
float f9 = lineBaseline;
canvas.drawText(charSequence, 0, charSequence.length(), BitmapDescriptorFactory.HUE_RED, f9, this.aq);
if (Build.VERSION.SDK_INT >= 31) {
this.aq.setShadowLayer(this.X, this.T, this.W, this.V);
}
if (this.l) {
return;
}
String trim = this.ao.toString().trim();
if (trim.endsWith("")) {
trim = trim.substring(0, trim.length() - 1);
}
String str = trim;
this.aq.setAlpha(alpha);
canvas.drawText(str, 0, Math.min(this.ar.getLineEnd(0), str.length()), BitmapDescriptorFactory.HUE_RED, f9, (Paint) this.aq);
}
private boolean a(CharSequence charSequence) {
InterfaceC16957sii interfaceC16957sii;
boolean z = ViewCompat.m(this.at) == 1;
if (!this.t) {
return z;
}
if (z) {
interfaceC16957sii = Bww.a;
} else {
interfaceC16957sii = Bww.d;
}
return interfaceC16957sii.b(charSequence, 0, charSequence.length());
}
private void b(float f, boolean z) {
float f2;
float f3;
Typeface typeface;
if (this.v == null) {
return;
}
float width = this.A.width();
float width2 = this.ac.width();
if (Math.abs(f - 1.0f) < 1.0E-5f) {
f2 = this.a;
f3 = this.I;
this.al = 1.0f;
typeface = this.J;
} else {
float f4 = this.f;
float f5 = this.g;
Typeface typeface2 = this.f9209o;
if (Math.abs(f) < 1.0E-5f) {
this.al = 1.0f;
} else {
float f6 = this.f;
float f7 = this.a;
TimeInterpolator timeInterpolator = this.x;
if (timeInterpolator != null) {
f = timeInterpolator.getInterpolation(f);
}
this.al = (f6 + (f * (f7 - f6))) / this.f;
}
float f8 = this.a / this.f;
width = (!z && width2 * f8 > width) ? Math.min(width / f8, width2) : width2;
f2 = f4;
f3 = f5;
typeface = typeface2;
}
if (width > BitmapDescriptorFactory.HUE_RED) {
boolean z2 = this.Y != f2;
boolean z3 = this.U != f3;
boolean z4 = this.Z != typeface;
StaticLayout staticLayout = this.ar;
boolean z5 = z2 || z3 || (staticLayout != null && (width > ((float) staticLayout.getWidth()) ? 1 : (width == ((float) staticLayout.getWidth()) ? 0 : -1)) != 0) || z4 || this.C;
this.Y = f2;
this.U = f3;
this.Z = typeface;
this.C = false;
this.aq.setLinearText(this.al != 1.0f);
r5 = z5;
}
if (this.ap == null || r5) {
this.aq.setTextSize(this.Y);
this.aq.setTypeface(this.Z);
this.aq.setLetterSpacing(this.U);
this.ak = a(this.v);
StaticLayout JI_ = JI_(c() ? this.p : 1, width, this.ak);
this.ar = JI_;
this.ap = JI_.getText();
}
}
private StaticLayout JI_(int i, float f, boolean z) {
StaticLayout staticLayout;
Layout.Alignment alignment;
TextDirectionHeuristic textDirectionHeuristic;
try {
if (i == 1) {
alignment = Layout.Alignment.ALIGN_NORMAL;
} else {
int c = HpP.c(this.i, this.ak ? 1 : 0) & 7;
if (c == 1) {
alignment = Layout.Alignment.ALIGN_CENTER;
} else if (c == 5) {
alignment = this.ak ? Layout.Alignment.ALIGN_NORMAL : Layout.Alignment.ALIGN_OPPOSITE;
} else {
alignment = this.ak ? Layout.Alignment.ALIGN_OPPOSITE : Layout.Alignment.ALIGN_NORMAL;
}
}
Obm obm = new Obm(this.v, this.aq, (int) f);
obm.c = this.B;
obm.j = z;
obm.b = alignment;
obm.h = false;
obm.g = i;
float f2 = this.s;
float f3 = this.r;
obm.f = f2;
obm.i = f3;
obm.a = this.q;
obm.m = this.y;
if (obm.l == null) {
obm.l = "";
}
int max = Math.max(0, obm.n);
CharSequence charSequence = obm.l;
if (obm.g == 1) {
charSequence = TextUtils.ellipsize(charSequence, obm.f8307o, max, obm.c);
}
obm.d = Math.min(charSequence.length(), obm.d);
if (obm.j && obm.g == 1) {
obm.b = Layout.Alignment.ALIGN_OPPOSITE;
}
int i2 = obm.k;
StaticLayout.Builder obtain = StaticLayout.Builder.obtain(charSequence, 0, obm.d, obm.f8307o, max);
obtain.setAlignment(obm.b);
obtain.setIncludePad(obm.h);
if (obm.j) {
textDirectionHeuristic = TextDirectionHeuristics.RTL;
} else {
textDirectionHeuristic = TextDirectionHeuristics.LTR;
}
obtain.setTextDirection(textDirectionHeuristic);
TextUtils.TruncateAt truncateAt = obm.c;
if (truncateAt != null) {
obtain.setEllipsize(truncateAt);
}
obtain.setMaxLines(obm.g);
float f4 = obm.f;
if (f4 != BitmapDescriptorFactory.HUE_RED || obm.i != 1.0f) {
obtain.setLineSpacing(f4, obm.i);
}
if (obm.g > 1) {
obtain.setHyphenationFrequency(obm.a);
}
InterfaceC8624dQw interfaceC8624dQw = obm.m;
staticLayout = obtain.build();
} catch (Obm.HBt e) {
e.getCause().getMessage();
staticLayout = null;
}
return staticLayout;
}
public final void c(boolean z) {
if ((this.at.getHeight() <= 0 || this.at.getWidth() <= 0) && !z) {
return;
}
a(z);
b(this.d);
}
public final void d(CharSequence charSequence) {
if (charSequence == null || !TextUtils.equals(this.v, charSequence)) {
this.v = charSequence;
this.ap = null;
c(false);
}
}
private static int b(int i, int i2, float f) {
float f2 = 1.0f - f;
return Color.argb(Math.round((Color.alpha(i) * f2) + (Color.alpha(i2) * f)), Math.round((Color.red(i) * f2) + (Color.red(i2) * f)), Math.round((Color.green(i) * f2) + (Color.green(i2) * f)), Math.round((Color.blue(i) * f2) + (Color.blue(i2) * f)));
}
private static boolean JK_(Rect rect, int i, int i2, int i3, int i4) {
return rect.left == i && rect.top == i2 && rect.right == i3 && rect.bottom == i4;
}
public final boolean JL_(Typeface typeface) {
C16116lPK c16116lPK = this.H;
if (c16116lPK != null) {
c16116lPK.c = true;
}
if (this.R == typeface) {
return false;
}
this.R = typeface;
Typeface KF_ = FDA.KF_(this.at.getContext().getResources().getConfiguration(), typeface);
this.Q = KF_;
if (KF_ == null) {
KF_ = this.R;
}
this.J = KF_;
return true;
}
public final boolean JM_(Typeface typeface) {
C16116lPK c16116lPK = this.ag;
if (c16116lPK != null) {
c16116lPK.c = true;
}
if (this.ai == typeface) {
return false;
}
this.ai = typeface;
Typeface KF_ = FDA.KF_(this.at.getContext().getResources().getConfiguration(), typeface);
this.aj = KF_;
if (KF_ == null) {
KF_ = this.ai;
}
this.f9209o = KF_;
return true;
}
private boolean c() {
return this.p > 1 && (!this.ak || this.l);
}
}