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

54 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
/* loaded from: classes5.dex */
public final class fLS implements TextWatcher {
private final InterfaceC14890gbN<C14866gag> a;
private final int b;
private final InterfaceC14890gbN<C14866gag> d;
private final View e;
@Override // android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
}
@Override // android.text.TextWatcher
public final void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
public fLS(int i, View view, InterfaceC14890gbN<C14866gag> interfaceC14890gbN, InterfaceC14890gbN<C14866gag> interfaceC14890gbN2) {
C14957gcv.e(view, "");
C14957gcv.e(interfaceC14890gbN, "");
C14957gcv.e(interfaceC14890gbN2, "");
this.b = i;
this.e = view;
this.d = interfaceC14890gbN;
this.a = interfaceC14890gbN2;
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
this.d.invoke();
if (charSequence == null || charSequence.length() != this.b) {
return;
}
this.e.requestFocus();
View view = this.e;
if (view instanceof EditText) {
EditText editText = (EditText) view;
C14957gcv.e(editText, "");
Editable text = editText.getText();
editText.setSelection(text != null ? text.length() : 0);
return;
}
if (view instanceof Button) {
this.a.invoke();
}
}
}