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.
61 lines
1.8 KiB
61 lines
1.8 KiB
package p028j;
|
|
|
|
import android.content.res.TypedArray;
|
|
import android.text.method.KeyListener;
|
|
import android.text.method.NumberKeyListener;
|
|
import android.util.AttributeSet;
|
|
import android.view.inputmethod.EditorInfo;
|
|
import android.view.inputmethod.InputConnection;
|
|
import android.widget.EditText;
|
|
import p007c.C0494j;
|
|
import p044o0.C1512a;
|
|
|
|
/* renamed from: j.l */
|
|
/* loaded from: classes.dex */
|
|
public class C1136l {
|
|
|
|
/* renamed from: a */
|
|
public final EditText f2756a;
|
|
|
|
/* renamed from: b */
|
|
public final C1512a f2757b;
|
|
|
|
public C1136l(EditText editText) {
|
|
this.f2756a = editText;
|
|
this.f2757b = new C1512a(editText, false);
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public KeyListener m2062a(KeyListener keyListener) {
|
|
return m2061b(keyListener) ? this.f2757b.m1137a(keyListener) : keyListener;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public boolean m2061b(KeyListener keyListener) {
|
|
return !(keyListener instanceof NumberKeyListener);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public void m2060c(AttributeSet attributeSet, int i) {
|
|
TypedArray obtainStyledAttributes = this.f2756a.getContext().obtainStyledAttributes(attributeSet, C0494j.f1832g0, i, 0);
|
|
try {
|
|
int i2 = C0494j.f1902u0;
|
|
boolean z = obtainStyledAttributes.hasValue(i2) ? obtainStyledAttributes.getBoolean(i2, true) : true;
|
|
obtainStyledAttributes.recycle();
|
|
m2058e(z);
|
|
} catch (Throwable th) {
|
|
obtainStyledAttributes.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public InputConnection m2059d(InputConnection inputConnection, EditorInfo editorInfo) {
|
|
return this.f2757b.m1136b(inputConnection, editorInfo);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public void m2058e(boolean z) {
|
|
this.f2757b.m1135c(z);
|
|
}
|
|
} |