package y4;

import android.content.Context;
import android.graphics.drawable.Drawable;
import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public final class b extends a {

    /* renamed from: f, reason: collision with root package name */
    private final i.c f51979f;

    /* JADX WARN: Illegal instructions before constructor call */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public b(i.c activity, d configuration) {
        super(r0, configuration);
        t.g(activity, "activity");
        t.g(configuration, "configuration");
        i.b D = activity.D();
        if (D != null) {
            Context a10 = D.a();
            t.f(a10, "checkNotNull(activity.dr… }.actionBarThemedContext");
            this.f51979f = activity;
            return;
        }
        throw new IllegalStateException(("Activity " + activity + " does not have an DrawerToggleDelegate set").toString());
    }

    @Override // y4.a
    protected void c(Drawable drawable, int i10) {
        i.a E = this.f51979f.E();
        if (E == null) {
            throw new IllegalStateException(("Activity " + this.f51979f + " does not have an ActionBar set via setSupportActionBar()").toString());
        }
        E.u(drawable != null);
        i.b D = this.f51979f.D();
        if (D != null) {
            D.b(drawable, i10);
            return;
        }
        throw new IllegalStateException(("Activity " + this.f51979f + " does not have an DrawerToggleDelegate set").toString());
    }

    @Override // y4.a
    protected void d(CharSequence charSequence) {
        i.a E = this.f51979f.E();
        if (E != null) {
            E.A(charSequence);
            return;
        }
        throw new IllegalStateException(("Activity " + this.f51979f + " does not have an ActionBar set via setSupportActionBar()").toString());
    }
}
