package com.ironsource.adqualitysdk.sdk.i; import android.view.View; import androidx.annotation.MainThread; import com.ironsource.adqualitysdk.sdk.i.jd.AnonymousClass1; import com.ironsource.adqualitysdk.sdk.i.jd.AnonymousClass2; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* loaded from: classes4.dex */ public final class jb { /* renamed from: ﻐ, reason: contains not printable characters */ private static jb f2599; /* renamed from: k, reason: contains not printable characters */ private List f2601 = new ArrayList(); /* renamed from: ヌ, reason: contains not printable characters */ private List f2602 = new ArrayList(); /* renamed from: ﻛ, reason: contains not printable characters */ private List f2600 = new ArrayList(); /* renamed from: メ, reason: contains not printable characters */ private im f2603 = new im() { // from class: com.ironsource.adqualitysdk.sdk.i.jb.1 @Override // com.ironsource.adqualitysdk.sdk.i.im /* renamed from: メ */ public final void mo2376() { List m3269 = jr.m3269(); jb.this.f2600.clear(); jb.this.f2600.addAll(jb.this.f2601); for (int i = 0; i < m3269.size(); i++) { View view = m3269.get(i); jb.this.f2600.remove(view); if (!jb.this.f2601.contains(view)) { jb.this.f2601.add(view); jb.this.m3147(view); } } for (int i2 = 0; i2 < jb.this.f2600.size(); i2++) { View view2 = (View) jb.this.f2600.get(i2); jb.this.f2601.remove(view2); jb.this.m3150(view2); } jb.this.f2600.clear(); } }; /* renamed from: メ, reason: contains not printable characters */ public static synchronized jb m3151() { jb jbVar; synchronized (jb.class) { try { if (f2599 == null) { f2599 = new jb(); } jbVar = f2599; } catch (Throwable th) { throw th; } } return jbVar; } private jb() { } /* renamed from: ﻐ, reason: contains not printable characters */ public final void m3153(final jg jgVar) { synchronized (this) { this.f2602.add(jgVar); } t.m3512(jd.m3184().new AnonymousClass1(this.f2603)); t.m3514(new io() { // from class: com.ironsource.adqualitysdk.sdk.i.jb.5 @Override // com.ironsource.adqualitysdk.sdk.i.io /* renamed from: k */ public final void mo933() { Iterator it = jb.this.f2601.iterator(); while (it.hasNext()) { jgVar.mo876((View) it.next()); } } }); } /* renamed from: ﻛ, reason: contains not printable characters */ public final void m3154(jg jgVar) { synchronized (this) { try { this.f2602.remove(jgVar); if (this.f2602.size() == 0) { t.m3512(jd.m3184().new AnonymousClass2(this.f2603)); } } catch (Throwable th) { throw th; } } } /* JADX INFO: Access modifiers changed from: private */ @MainThread /* renamed from: ﻐ, reason: contains not printable characters */ public synchronized void m3147(View view) { Iterator it = this.f2602.iterator(); while (it.hasNext()) { it.next().mo876(view); } } /* JADX INFO: Access modifiers changed from: private */ @MainThread /* renamed from: k, reason: contains not printable characters */ public synchronized void m3150(View view) { Iterator it = this.f2602.iterator(); while (it.hasNext()) { it.next().mo878(view); } } }