Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package dagger.hilt.android.internal;
import android.os.Looper;
/* loaded from: classes3.dex */
public final class ThreadUtil {
private static Thread mainThread;
private ThreadUtil() {
}
public static void ensureMainThread() {
if (!isMainThread()) {
throw new IllegalStateException("Must be called on the Main thread.");
}
}
public static boolean isMainThread() {
if (mainThread == null) {
mainThread = Looper.getMainLooper().getThread();
}
return Thread.currentThread() == mainThread;
}
}