what-the-bank/sources/o/typ.java

56 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/* loaded from: classes.dex */
public abstract class typ {
public final yax a;
private final IntentFilter c;
private final Context e;
public Set d = new HashSet();
private C15814inh b = null;
private volatile boolean j = false;
public typ(yax yaxVar, IntentFilter intentFilter, Context context) {
this.a = yaxVar;
this.c = intentFilter;
Context applicationContext = context.getApplicationContext();
this.e = applicationContext != null ? applicationContext : context;
}
/* JADX INFO: Access modifiers changed from: protected */
public abstract void No_(Context context, Intent intent);
public final void a() {
C15814inh c15814inh;
if (!this.d.isEmpty() && this.b == null) {
this.b = new C15814inh(this);
if (Build.VERSION.SDK_INT >= 33) {
this.e.registerReceiver(this.b, this.c, 2);
} else {
this.e.registerReceiver(this.b, this.c);
}
}
if (!this.d.isEmpty() || (c15814inh = this.b) == null) {
return;
}
this.e.unregisterReceiver(c15814inh);
this.b = null;
}
public final void a(Object obj) {
synchronized (this) {
Iterator it = new HashSet(this.d).iterator();
while (it.hasNext()) {
((InterfaceC2177aZg) it.next()).c(obj);
}
}
}
}