package o; import android.text.method.KeyListener; import android.text.method.NumberKeyListener; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.widget.EditText; /* loaded from: classes.dex */ public final class mLT { public final Sts b; private int d = Integer.MAX_VALUE; private int c = 0; public mLT(EditText editText) { if (editText != null) { this.b = new HBt(editText, false); return; } throw new NullPointerException("editText cannot be null"); } /* loaded from: classes.dex */ public static class Sts { public void b(boolean z) { } public KeyListener xN_(KeyListener keyListener) { return keyListener; } public InputConnection xO_(InputConnection inputConnection, EditorInfo editorInfo) { return inputConnection; } Sts() { } } /* loaded from: classes.dex */ static class HBt extends Sts { private final sUH b; private final EditText d; HBt(EditText editText, boolean z) { this.d = editText; sUH suh = new sUH(editText, z); this.b = suh; editText.addTextChangedListener(suh); editText.setEditableFactory(C5077bmI.xP_()); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.mLT.Sts public KeyListener xN_(KeyListener keyListener) { if (keyListener instanceof C10002duY) { return keyListener; } if (keyListener == null) { return null; } return keyListener instanceof NumberKeyListener ? keyListener : new C10002duY(keyListener); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.mLT.Sts public InputConnection xO_(InputConnection inputConnection, EditorInfo editorInfo) { return inputConnection instanceof SWa ? inputConnection : new SWa(this.d, inputConnection, editorInfo); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.mLT.Sts public void b(boolean z) { sUH suh = this.b; if (suh.d != z) { if (suh.c != null) { C16349neT.e().d(suh.c); } suh.d = z; if (z) { sUH.yf_(suh.e, C16349neT.e().a()); } } } } }