NetMirror.apk
Download file
package u;
import android.content.ClipData;
import android.content.ClipDescription;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.os.ResultReceiver;
import android.text.TextUtils;
import android.util.Log;
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.C0243d;
import androidx.core.view.Z;
import q.g;
/* JADX INFO: loaded from: classes.dex */
public final class e {
class a extends InputConnectionWrapper {
/* JADX INFO: renamed from: a, reason: collision with root package name */
final /* synthetic */ c f10797a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
a(InputConnection inputConnection, boolean z3, c cVar) {
super(inputConnection, z3);
this.f10797a = cVar;
}
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
public boolean commitContent(InputContentInfo inputContentInfo, int i3, Bundle bundle) {
if (this.f10797a.a(f.f(inputContentInfo), i3, bundle)) {
return true;
}
return super.commitContent(inputContentInfo, i3, bundle);
}
}
class b extends InputConnectionWrapper {
/* JADX INFO: renamed from: a, reason: collision with root package name */
final /* synthetic */ c f10798a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
b(InputConnection inputConnection, boolean z3, c cVar) {
super(inputConnection, z3);
this.f10798a = cVar;
}
@Override // android.view.inputmethod.InputConnectionWrapper, android.view.inputmethod.InputConnection
public boolean performPrivateCommand(String str, Bundle bundle) {
if (e.e(str, bundle, this.f10798a)) {
return true;
}
return super.performPrivateCommand(str, bundle);
}
}
public interface c {
boolean a(f fVar, int i3, Bundle bundle);
}
@Deprecated
public e() {
}
private static c b(final View view) {
g.g(view);
return new c() { // from class: u.d
@Override // u.e.c
public final boolean a(f fVar, int i3, Bundle bundle) {
return e.f(view, fVar, i3, bundle);
}
};
}
public static InputConnection c(View view, InputConnection inputConnection, EditorInfo editorInfo) {
return d(inputConnection, editorInfo, b(view));
}
public static InputConnection d(InputConnection inputConnection, EditorInfo editorInfo, c cVar) {
q.c.c(inputConnection, "inputConnection must be non-null");
q.c.c(editorInfo, "editorInfo must be non-null");
q.c.c(cVar, "onCommitContentListener must be non-null");
return Build.VERSION.SDK_INT >= 25 ? new a(inputConnection, false, cVar) : C0733c.a(editorInfo).length == 0 ? inputConnection : new b(inputConnection, false, cVar);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v0 */
/* JADX WARN: Type inference failed for: r0v3, types: [boolean, int] */
/* JADX WARN: Type inference failed for: r0v5 */
/* JADX WARN: Type inference failed for: r0v6 */
static boolean e(String str, Bundle bundle, c cVar) throws Throwable {
boolean z3;
ResultReceiver resultReceiver;
?? A3 = 0;
A3 = 0;
if (bundle == null) {
return false;
}
if (TextUtils.equals("androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT", str)) {
z3 = false;
} else {
if (!TextUtils.equals("android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT", str)) {
return false;
}
z3 = true;
}
try {
ResultReceiver resultReceiver2 = (ResultReceiver) bundle.getParcelable(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER");
try {
Uri uri = (Uri) bundle.getParcelable(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_URI" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_URI");
ClipDescription clipDescription = (ClipDescription) bundle.getParcelable(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION");
Uri uri2 = (Uri) bundle.getParcelable(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI");
int i3 = bundle.getInt(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS");
Bundle bundle2 = (Bundle) bundle.getParcelable(z3 ? "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_OPTS" : "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_OPTS");
if (uri != null && clipDescription != null) {
A3 = cVar.a(new f(uri, clipDescription, uri2), i3, bundle2);
}
if (resultReceiver2 != 0) {
resultReceiver2.send(A3, null);
}
return A3;
} catch (Throwable th) {
th = th;
resultReceiver = resultReceiver2;
if (resultReceiver != null) {
resultReceiver.send(0, null);
}
throw th;
}
} catch (Throwable th2) {
th = th2;
resultReceiver = null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ boolean f(View view, f fVar, int i3, Bundle bundle) {
if (Build.VERSION.SDK_INT >= 25 && (i3 & 1) != 0) {
try {
fVar.d();
Parcelable parcelable = (Parcelable) fVar.e();
bundle = bundle == null ? new Bundle() : new Bundle(bundle);
bundle.putParcelable("androidx.core.view.extra.INPUT_CONTENT_INFO", parcelable);
} catch (Exception e4) {
Log.w("InputConnectionCompat", "Can't insert content from IME; requestPermission() failed", e4);
return false;
}
}
return Z.Q(view, new C0243d.a(new ClipData(fVar.b(), new ClipData.Item(fVar.a())), 2).d(fVar.c()).b(bundle).a()) == null;
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file