package rb;

import android.content.Context;
import android.os.Handler;
import e.i0;

/* JADX INFO: loaded from: classes.dex */
public final class g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Context f32526a;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Runnable f32530e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public boolean f32531f;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f32528c = false;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final i0 f32527b = new i0(this);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Handler f32529d = new Handler();

    public g(Context context, mc.g gVar) {
        this.f32526a = context;
        this.f32530e = gVar;
    }

    public final void a() {
        this.f32529d.removeCallbacksAndMessages(null);
        if (this.f32528c) {
            this.f32526a.unregisterReceiver(this.f32527b);
            this.f32528c = false;
        }
    }
}
