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

97 lines
3.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
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;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import o.C15715hv;
/* renamed from: o.Co, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0261Co extends C16157lj {
public final C16414oE a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C0261Co(C16414oE c16414oE, Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(c16414oE, "");
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
this.a = c16414oE;
}
public final AbstractC0518Im h() {
String e = e(C15715hv.tOB.auto_single_form_personal_info_privacy_notice_clickable);
String e2 = e(C15715hv.tOB.auto_single_form_personal_info_privacy_notice);
StringBuilder sb = new StringBuilder();
sb.append(e2);
sb.append(" ");
sb.append(e);
String obj = sb.toString();
int length = obj.length();
int length2 = e.length();
int length3 = obj.length();
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(obj);
Object[] objArr = {new RVV(this), new StyleSpan(1)};
C14957gcv.e(objArr, "");
C14957gcv.e(objArr, "");
List asList = Arrays.asList(objArr);
C14957gcv.c(asList, "");
Iterator it = asList.iterator();
while (it.hasNext()) {
spannableStringBuilder.setSpan(it.next(), length - length2, length3, 33);
}
if (!b()) {
spannableStringBuilder.append((CharSequence) ".");
}
return new C0519In(spannableStringBuilder, "PRIVACY_NOTE");
}
/* renamed from: o.Co$RVV */
/* loaded from: classes3.dex */
public static final class RVV extends ClickableSpan {
private C0261Co d;
RVV(C0261Co c0261Co) {
this.d = c0261Co;
}
@Override // android.text.style.ClickableSpan
public final void onClick(View view) {
C14957gcv.e(view, "");
view.callOnClick();
}
@Override // android.text.style.ClickableSpan, android.text.style.CharacterStyle
public final void updateDrawState(TextPaint textPaint) {
C14957gcv.e(textPaint, "");
super.updateDrawState(textPaint);
int nX_ = kVs.nX_(this.d.e, C15715hv.LWm.fake_black, null);
textPaint.setUnderlineText(true);
textPaint.setColor(nX_);
}
}
/* renamed from: o.Co$LWm */
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
static {
new LWm((byte) 0);
}
}