NetMirror.apk
Download file
package com.facebook.react.views.view;
import android.graphics.Canvas;
import android.os.Build;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/* JADX INFO: loaded from: classes.dex */
public final class c {
/* JADX INFO: renamed from: a, reason: collision with root package name */
public static final c f8160a = new c();
/* JADX INFO: renamed from: b, reason: collision with root package name */
private static Method f8161b;
/* JADX INFO: renamed from: c, reason: collision with root package name */
private static Method f8162c;
/* JADX INFO: renamed from: d, reason: collision with root package name */
private static boolean f8163d;
private c() {
}
public static final void a(Canvas canvas, boolean z3) {
Method method;
D2.h.f(canvas, "canvas");
if (Build.VERSION.SDK_INT >= 29) {
if (z3) {
canvas.enableZ();
return;
} else {
canvas.disableZ();
return;
}
}
f8160a.b();
if (z3) {
try {
Method method2 = f8161b;
if (method2 != null) {
if (method2 == null) {
throw new IllegalStateException("Required value was null.");
}
method2.invoke(canvas, new Object[0]);
}
} catch (IllegalAccessException | InvocationTargetException unused) {
return;
}
}
if (z3 || (method = f8162c) == null) {
return;
}
if (method == null) {
throw new IllegalStateException("Required value was null.");
}
method.invoke(canvas, new Object[0]);
}
private final void b() {
Method method;
if (f8163d) {
return;
}
try {
if (Build.VERSION.SDK_INT == 28) {
Method declaredMethod = Class.class.getDeclaredMethod("getDeclaredMethod", String.class, Object[].class);
Object objInvoke = declaredMethod.invoke(Canvas.class, "insertReorderBarrier", new Class[0]);
D2.h.d(objInvoke, "null cannot be cast to non-null type java.lang.reflect.Method");
f8161b = (Method) objInvoke;
Object objInvoke2 = declaredMethod.invoke(Canvas.class, "insertInorderBarrier", new Class[0]);
D2.h.d(objInvoke2, "null cannot be cast to non-null type java.lang.reflect.Method");
f8162c = (Method) objInvoke2;
} else {
f8161b = Canvas.class.getDeclaredMethod("insertReorderBarrier", new Class[0]);
f8162c = Canvas.class.getDeclaredMethod("insertInorderBarrier", new Class[0]);
}
method = f8161b;
} catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused) {
}
if (method != null && f8162c != null) {
if (method != null) {
method.setAccessible(true);
}
Method method2 = f8162c;
if (method2 != null) {
method2.setAccessible(true);
}
f8163d = true;
}
}
}
⚠️ 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