You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.2 KiB

package p044o0;
import android.os.Build;
import android.text.method.KeyListener;
import android.text.method.NumberKeyListener;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.EditText;
import p020g0.C0737f;
/* renamed from: o0.a */
/* loaded from: classes.dex */
public final class C1512a {
/* renamed from: a */
public final C1514b f3361a;
/* renamed from: b */
public int f3362b = Integer.MAX_VALUE;
/* renamed from: c */
public int f3363c = 0;
/* renamed from: o0.a$a */
/* loaded from: classes.dex */
public static class C1513a extends C1514b {
/* renamed from: a */
public final EditText f3364a;
/* renamed from: b */
public final C1528i f3365b;
public C1513a(EditText editText, boolean z) {
this.f3364a = editText;
C1528i c1528i = new C1528i(editText, z);
this.f3365b = c1528i;
editText.addTextChangedListener(c1528i);
editText.setEditableFactory(C1515b.getInstance());
}
@Override // p044o0.C1512a.C1514b
/* renamed from: a */
public KeyListener mo1134a(KeyListener keyListener) {
if (keyListener instanceof C1521f) {
return keyListener;
}
if (keyListener == null) {
return null;
}
return keyListener instanceof NumberKeyListener ? keyListener : new C1521f(keyListener);
}
@Override // p044o0.C1512a.C1514b
/* renamed from: b */
public InputConnection mo1133b(InputConnection inputConnection, EditorInfo editorInfo) {
return inputConnection instanceof C1516c ? inputConnection : new C1516c(this.f3364a, inputConnection, editorInfo);
}
@Override // p044o0.C1512a.C1514b
/* renamed from: c */
public void mo1132c(boolean z) {
this.f3365b.m1104c(z);
}
}
/* renamed from: o0.a$b */
/* loaded from: classes.dex */
public static class C1514b {
/* renamed from: a */
public KeyListener mo1134a(KeyListener keyListener) {
return keyListener;
}
/* renamed from: b */
public InputConnection mo1133b(InputConnection inputConnection, EditorInfo editorInfo) {
return inputConnection;
}
/* renamed from: c */
public void mo1132c(boolean z) {
}
}
public C1512a(EditText editText, boolean z) {
C0737f.m3032g(editText, "editText cannot be null");
if (Build.VERSION.SDK_INT < 19) {
this.f3361a = new C1514b();
} else {
this.f3361a = new C1513a(editText, z);
}
}
/* renamed from: a */
public KeyListener m1137a(KeyListener keyListener) {
return this.f3361a.mo1134a(keyListener);
}
/* renamed from: b */
public InputConnection m1136b(InputConnection inputConnection, EditorInfo editorInfo) {
if (inputConnection == null) {
return null;
}
return this.f3361a.mo1133b(inputConnection, editorInfo);
}
/* renamed from: c */
public void m1135c(boolean z) {
this.f3361a.mo1132c(z);
}
}