package com.ironsource;

import android.app.Activity;
import android.content.MutableContextWrapper;
/* loaded from: classes4.dex */
public class b9 {

    /* renamed from: a  reason: collision with root package name */
    MutableContextWrapper f2213a;

    public Activity a() {
        return (Activity) this.f2213a.getBaseContext();
    }

    public synchronized void a(Activity activity) {
        if (this.f2213a == null) {
            this.f2213a = new MutableContextWrapper(activity);
        }
        this.f2213a.setBaseContext(activity);
    }

    public synchronized void b() {
        this.f2213a = null;
    }
}
