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

81 lines
2.7 KiB
Java

package o;
import android.content.ClipData;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputConnectionWrapper;
import android.view.inputmethod.InputContentInfo;
import androidx.core.view.ViewCompat;
import o.irq;
/* loaded from: classes.dex */
public final class CPS {
/* loaded from: classes.dex */
public interface RVV {
boolean uI_(VuM vuM, int i, Bundle bundle);
}
@Deprecated
public static InputConnection uF_(InputConnection inputConnection, EditorInfo editorInfo, RVV rvv) {
ZEY.c(inputConnection, "inputConnection must be non-null");
ZEY.c(editorInfo, "editorInfo must be non-null");
ZEY.c(rvv, "onCommitContentListener must be non-null");
return new InputConnectionWrapper(inputConnection, false, rvv) { // from class: o.CPS.2
final RVV d;
{
this.d = rvv;
}
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
public boolean commitContent(InputContentInfo inputContentInfo, int i, Bundle bundle) {
if (this.d.uI_(VuM.e(inputContentInfo), i, bundle)) {
return true;
}
return super.commitContent(inputContentInfo, i, bundle);
}
};
}
public static InputConnection uE_(View view, InputConnection inputConnection, EditorInfo editorInfo) {
return uF_(inputConnection, editorInfo, e(view));
}
private static RVV e(final View view) {
return new RVV(view) { // from class: o.EHO
public final View c;
@Override // o.CPS.RVV
public final boolean uI_(VuM vuM, int i, Bundle bundle) {
return CPS.uG_(this.c, vuM, i, bundle);
}
{
this.c = view;
}
};
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean uG_(View view, VuM vuM, int i, Bundle bundle) {
if ((i & 1) != 0) {
try {
vuM.c();
InputContentInfo inputContentInfo = (InputContentInfo) vuM.b();
bundle = bundle == null ? new Bundle() : new Bundle(bundle);
bundle.putParcelable("androidx.core.view.extra.INPUT_CONTENT_INFO", inputContentInfo);
} catch (Exception unused) {
return false;
}
}
return ViewCompat.c(view, new irq.HBt(new ClipData(vuM.uK_(), new ClipData.Item(vuM.uJ_())), 2).qW_(vuM.uL_()).qV_(bundle).b()) == null;
}
@Deprecated
public CPS() {
}
}