package com.scb.phone.view.custom.common; import android.content.Context; import android.text.InputFilter; import android.util.AttributeSet; import android.view.View; import o.C6583cXR; /* loaded from: classes5.dex */ public class CustomPhoneNumberInput extends CommonInputViewGroup { public CustomPhoneNumberInput(Context context) { super(context); } public CustomPhoneNumberInput(Context context, AttributeSet attributeSet) { super(context, attributeSet); } public CustomPhoneNumberInput(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); } public static /* synthetic */ void apn_(CustomPhoneNumberInput customPhoneNumberInput, View.OnFocusChangeListener onFocusChangeListener, int i, boolean z, View view, boolean z2) { if (onFocusChangeListener != null) { onFocusChangeListener.onFocusChange(view, z2); } String obj = customPhoneNumberInput.mEditText.getText().toString(); if (z2) { customPhoneNumberInput.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(i)}); customPhoneNumberInput.mEditText.setText(C6583cXR.v(obj)); } else { if (customPhoneNumberInput.mErrorTextView.getVisibility() == 0) { return; } customPhoneNumberInput.mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(i + 2)}); customPhoneNumberInput.mEditText.setText((String) C6583cXR.c(new Object[]{Boolean.valueOf(z), true, obj}, -1092823629, 1092823630, (int) System.currentTimeMillis())); } } }