package com.vungle.warren.utility; import android.os.Build; import android.os.Handler; import android.os.Looper; /* loaded from: classes2.dex */ public abstract class v { /* renamed from: a, reason: collision with root package name */ private static final Handler f8637a = new Handler(Looper.getMainLooper()); public static boolean a() { boolean isCurrentThread; Looper mainLooper = Looper.getMainLooper(); if (mainLooper == null) { return false; } if (Build.VERSION.SDK_INT >= 23) { isCurrentThread = mainLooper.isCurrentThread(); return isCurrentThread; } Looper myLooper = Looper.myLooper(); return myLooper != null && mainLooper.getThread().equals(myLooper.getThread()); } public static void b(Runnable runnable) { if (a()) { runnable.run(); } else { f8637a.post(runnable); } } }