package com.igaworks.ssp.common; import android.os.Handler; /* loaded from: classes2.dex */ public class f { /* renamed from: a, reason: collision with root package name */ private b f6574a; /* renamed from: b, reason: collision with root package name */ private com.igaworks.ssp.common.o.c f6575b; /* renamed from: c, reason: collision with root package name */ private Handler f6576c; private class b implements Runnable { /* renamed from: a, reason: collision with root package name */ private boolean f6577a; private b() { this.f6577a = false; } public void a(boolean z10) { this.f6577a = z10; } @Override // java.lang.Runnable public void run() { if (this.f6577a || f.this.f6575b == null) { return; } f.this.f6575b.a(); } } public void a() { Handler handler = this.f6576c; if (handler != null) { try { handler.removeCallbacks(this.f6574a); this.f6576c = null; } catch (Exception e10) { com.igaworks.ssp.common.o.m.a.a(Thread.currentThread(), e10); } } b bVar = this.f6574a; if (bVar != null) { try { bVar.a(true); this.f6574a = null; } catch (Exception e11) { e11.printStackTrace(); } } if (this.f6575b != null) { try { this.f6575b = null; } catch (Exception e12) { e12.printStackTrace(); } } } public void a(long j10, com.igaworks.ssp.common.o.c cVar) { try { System.currentTimeMillis(); this.f6575b = cVar; b bVar = new b(); this.f6574a = bVar; bVar.a(false); Handler handler = new Handler(); this.f6576c = handler; handler.postDelayed(this.f6574a, j10); } catch (Exception e10) { com.igaworks.ssp.common.o.m.a.a(Thread.currentThread(), e10); } } }