36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
package o;
|
|
|
|
import java.lang.reflect.Method;
|
|
import java.util.concurrent.Executor;
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
|
|
/* renamed from: o.ggI, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15068ggI {
|
|
private static final Method c;
|
|
|
|
static {
|
|
Method method;
|
|
try {
|
|
method = ScheduledThreadPoolExecutor.class.getMethod("setRemoveOnCancelPolicy", Boolean.TYPE);
|
|
} catch (Throwable unused) {
|
|
method = null;
|
|
}
|
|
c = method;
|
|
}
|
|
|
|
public static final boolean e(Executor executor) {
|
|
Method method;
|
|
try {
|
|
ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = executor instanceof ScheduledThreadPoolExecutor ? (ScheduledThreadPoolExecutor) executor : null;
|
|
if (scheduledThreadPoolExecutor == null || (method = c) == null) {
|
|
return false;
|
|
}
|
|
method.invoke(scheduledThreadPoolExecutor, Boolean.TRUE);
|
|
return true;
|
|
} catch (Throwable unused) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|