73 lines
2.9 KiB
Java
73 lines
2.9 KiB
Java
package o;
|
|
|
|
import android.content.res.Resources;
|
|
import android.text.SpannableStringBuilder;
|
|
import android.text.TextPaint;
|
|
import android.text.style.ClickableSpan;
|
|
import android.text.style.StyleSpan;
|
|
import android.view.View;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class fKB {
|
|
public static final fKB d = new fKB();
|
|
|
|
private fKB() {
|
|
}
|
|
|
|
public static /* synthetic */ CharSequence azW_(Resources resources, String str, String str2, String str3, boolean z, int i, InterfaceC14890gbN interfaceC14890gbN, int i2) {
|
|
return azV_(resources, str, (i2 & 4) != 0 ? "" : str2, (i2 & 8) != 0 ? "" : str3, (i2 & 16) != 0 ? false : z, 0, (i2 & 64) != 0 ? com.scb.phone.R.color.f13682131100876 : i, interfaceC14890gbN);
|
|
}
|
|
|
|
public static final CharSequence azV_(Resources resources, String str, String str2, String str3, boolean z, int i, int i2, InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
C14957gcv.e(str3, "");
|
|
C14957gcv.e(interfaceC14890gbN, "");
|
|
SpannableStringBuilder append = new SpannableStringBuilder().append((CharSequence) str2).append((CharSequence) str);
|
|
append.setSpan(new LWm(interfaceC14890gbN, z, resources, i2), str2.length(), append.length(), 33);
|
|
append.setSpan(new StyleSpan(i), str2.length(), append.length(), 33);
|
|
SpannableStringBuilder append2 = append.append((CharSequence) str3);
|
|
C14957gcv.c(append2, "");
|
|
return append2;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class LWm extends ClickableSpan {
|
|
private boolean a;
|
|
private int b;
|
|
private Resources c;
|
|
private InterfaceC14890gbN<C14866gag> d;
|
|
|
|
LWm(InterfaceC14890gbN<C14866gag> interfaceC14890gbN, boolean z, Resources resources, int i) {
|
|
this.d = interfaceC14890gbN;
|
|
this.a = z;
|
|
this.c = resources;
|
|
this.b = i;
|
|
}
|
|
|
|
@Override // android.text.style.ClickableSpan
|
|
public final void onClick(View view) {
|
|
C14957gcv.e(view, "");
|
|
this.d.invoke();
|
|
}
|
|
|
|
@Override // android.text.style.ClickableSpan, android.text.style.CharacterStyle
|
|
public final void updateDrawState(TextPaint textPaint) {
|
|
C14957gcv.e(textPaint, "");
|
|
super.updateDrawState(textPaint);
|
|
textPaint.setUnderlineText(this.a);
|
|
textPaint.setColor(kVs.nX_(this.c, this.b, null));
|
|
}
|
|
}
|
|
|
|
public static final CharSequence azU_(Resources resources, String str, String str2, String str3, InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
C14957gcv.e(str3, "");
|
|
C14957gcv.e(interfaceC14890gbN, "");
|
|
return azW_(resources, str, str2, str3, false, 0, interfaceC14890gbN, 112);
|
|
}
|
|
}
|