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

49 lines
1.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.Editable;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputConnectionWrapper;
import android.widget.TextView;
/* loaded from: classes.dex */
final class SWa extends InputConnectionWrapper {
private final HBt a;
private final TextView b;
/* JADX INFO: Access modifiers changed from: package-private */
public SWa(TextView textView, InputConnection inputConnection, EditorInfo editorInfo) {
this(textView, inputConnection, editorInfo, new HBt());
}
private SWa(TextView textView, InputConnection inputConnection, EditorInfo editorInfo, HBt hBt) {
super(inputConnection, false);
this.b = textView;
this.a = hBt;
hBt.xR_(editorInfo);
}
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
public final boolean deleteSurroundingText(int i, int i2) {
return this.a.xQ_(this, this.b.getEditableText(), i, i2, false) || super.deleteSurroundingText(i, i2);
}
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
public final boolean deleteSurroundingTextInCodePoints(int i, int i2) {
return this.a.xQ_(this, this.b.getEditableText(), i, i2, true) || super.deleteSurroundingTextInCodePoints(i, i2);
}
/* loaded from: classes.dex */
public static class HBt {
public boolean xQ_(InputConnection inputConnection, Editable editable, int i, int i2, boolean z) {
return C16349neT.xA_(inputConnection, editable, i, i2, z);
}
public void xR_(EditorInfo editorInfo) {
if (C16349neT.b()) {
C16349neT.e().xC_(editorInfo);
}
}
}
}