what-the-bank/sources/com/scb/phone/view/custom/ScbEllipsizeTextView.java

91 lines
4.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
import o.AQw;
/* loaded from: classes5.dex */
public class ScbEllipsizeTextView extends AppCompatTextView {
private boolean a;
private boolean b;
private int c;
private int d;
private CharSequence e;
private CharSequence i;
public ScbEllipsizeTextView(Context context) {
this(context, null);
}
public ScbEllipsizeTextView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.b = true;
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AQw.Sts.EllipsizeTextView);
this.c = obtainStyledAttributes.getInt(0, 0);
CharSequence text = obtainStyledAttributes.getText(1);
this.e = text;
if (text == null) {
this.e = "...";
}
obtainStyledAttributes.recycle();
}
@Override // android.widget.TextView
public void setMaxLines(int i) {
if (this.d != i) {
super.setMaxLines(i);
this.d = i;
}
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0070 A[Catch: Exception -> 0x018d, TryCatch #0 {Exception -> 0x018d, blocks: (B:3:0x000a, B:6:0x0017, B:8:0x001f, B:12:0x003e, B:13:0x006a, B:15:0x0070, B:20:0x0081, B:22:0x00a9, B:25:0x0171, B:26:0x0181, B:30:0x00b7, B:32:0x00c9, B:34:0x00cc, B:36:0x00d5, B:38:0x00f6, B:41:0x0107, B:43:0x010f, B:45:0x0115, B:46:0x0119, B:48:0x011f, B:51:0x0134, B:58:0x0148, B:60:0x0155, B:70:0x0168, B:72:0x00f2, B:73:0x017a, B:17:0x007a, B:75:0x007d, B:76:0x002a), top: B:2:0x000a }] */
/* JADX WARN: Removed duplicated region for block: B:22:0x00a9 A[Catch: Exception -> 0x018d, TryCatch #0 {Exception -> 0x018d, blocks: (B:3:0x000a, B:6:0x0017, B:8:0x001f, B:12:0x003e, B:13:0x006a, B:15:0x0070, B:20:0x0081, B:22:0x00a9, B:25:0x0171, B:26:0x0181, B:30:0x00b7, B:32:0x00c9, B:34:0x00cc, B:36:0x00d5, B:38:0x00f6, B:41:0x0107, B:43:0x010f, B:45:0x0115, B:46:0x0119, B:48:0x011f, B:51:0x0134, B:58:0x0148, B:60:0x0155, B:70:0x0168, B:72:0x00f2, B:73:0x017a, B:17:0x007a, B:75:0x007d, B:76:0x002a), top: B:2:0x000a }] */
/* JADX WARN: Removed duplicated region for block: B:73:0x017a A[Catch: Exception -> 0x018d, TryCatch #0 {Exception -> 0x018d, blocks: (B:3:0x000a, B:6:0x0017, B:8:0x001f, B:12:0x003e, B:13:0x006a, B:15:0x0070, B:20:0x0081, B:22:0x00a9, B:25:0x0171, B:26:0x0181, B:30:0x00b7, B:32:0x00c9, B:34:0x00cc, B:36:0x00d5, B:38:0x00f6, B:41:0x0107, B:43:0x010f, B:45:0x0115, B:46:0x0119, B:48:0x011f, B:51:0x0134, B:58:0x0148, B:60:0x0155, B:70:0x0168, B:72:0x00f2, B:73:0x017a, B:17:0x007a, B:75:0x007d, B:76:0x002a), top: B:2:0x000a }] */
/* JADX WARN: Removed duplicated region for block: B:74:0x007d A[SYNTHETIC] */
@Override // androidx.appcompat.widget.AppCompatTextView, android.widget.TextView, android.view.View
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onMeasure(int r17, int r18) {
/*
Method dump skipped, instructions count: 402
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.ScbEllipsizeTextView.onMeasure(int, int):void");
}
@Override // android.widget.TextView
public void setText(CharSequence charSequence, TextView.BufferType bufferType) {
if (this.b) {
this.i = charSequence;
}
super.setText(charSequence, bufferType);
if (this.a) {
requestLayout();
}
}
/* loaded from: classes5.dex */
public static final class RVV<T extends Comparable<? super T>> {
final T a;
final T d;
public RVV(T t, T t2) {
this.a = t;
this.d = t2;
if (t.compareTo(t2) > 0) {
throw new IllegalArgumentException("lower must be less than or equal to upper");
}
}
}
public void setEllipsizeText(CharSequence charSequence, int i) {
this.e = charSequence;
this.c = i;
}
}