- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
46 lines
1.5 KiB
Java
46 lines
1.5 KiB
Java
package com.fyber.inneractive.sdk.util;
|
|
|
|
import android.app.KeyguardManager;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import java.util.Iterator;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class y {
|
|
public final CopyOnWriteArrayList a = new CopyOnWriteArrayList();
|
|
public boolean b;
|
|
public Context c;
|
|
public x d;
|
|
|
|
public static class a {
|
|
public static final y a = new y();
|
|
}
|
|
|
|
public interface b {
|
|
void b(boolean z);
|
|
}
|
|
|
|
public static void a(y yVar, Context context, Intent intent) {
|
|
boolean z;
|
|
synchronized (yVar) {
|
|
try {
|
|
z = ((KeyguardManager) context.getSystemService("keyguard")).isKeyguardLocked();
|
|
} catch (Exception unused) {
|
|
IAlog.a("%sFailed to get lock screen status", IAlog.a(yVar));
|
|
z = false;
|
|
}
|
|
if ("android.intent.action.SCREEN_OFF".equals(intent.getAction())) {
|
|
yVar.b = true;
|
|
} else if (("android.intent.action.SCREEN_ON".equals(intent.getAction()) && !z) || "android.intent.action.USER_PRESENT".equals(intent.getAction())) {
|
|
yVar.b = false;
|
|
}
|
|
IAlog.a("%sNew screen state is locked: %s. number of listeners: %d", IAlog.a(yVar), Boolean.valueOf(yVar.b), Integer.valueOf(yVar.a.size()));
|
|
Iterator it = yVar.a.iterator();
|
|
while (it.hasNext()) {
|
|
((b) it.next()).b(yVar.b);
|
|
}
|
|
}
|
|
}
|
|
}
|