Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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);
}
}
}
}