NetMirror.apk
Download file
package com.facebook.react.bridge;
import android.os.Handler;
import android.os.Looper;
import g1.C0542a;
/* JADX INFO: loaded from: classes.dex */
public class UiThreadUtil {
private static volatile Handler sMainHandler;
public static void assertNotOnUiThread() {
if (C0542a.f9423b) {
SoftAssertions.assertCondition(!isOnUiThread(), "Expected not to run on UI thread!");
}
}
public static void assertOnUiThread() {
if (C0542a.f9423b) {
SoftAssertions.assertCondition(isOnUiThread(), "Expected to run on UI thread!");
}
}
public static Handler getUiThreadHandler() {
if (sMainHandler == null) {
synchronized (UiThreadUtil.class) {
try {
if (sMainHandler == null) {
sMainHandler = new Handler(Looper.getMainLooper());
}
} finally {
}
}
}
return sMainHandler;
}
public static boolean isOnUiThread() {
return Looper.getMainLooper().getThread() == Thread.currentThread();
}
public static void removeOnUiThread(Runnable runnable) {
getUiThreadHandler().removeCallbacks(runnable);
}
public static boolean runOnUiThread(Runnable runnable) {
return getUiThreadHandler().postDelayed(runnable, 0L);
}
public static boolean runOnUiThread(Runnable runnable, long j3) {
return getUiThreadHandler().postDelayed(runnable, j3);
}
}
⚠️ 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