package defpackage;

import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import androidx.appcompat.widget.Toolbar;

/* renamed from: ʽʘˋ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0062 implements InterfaceC0105 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public Drawable f1266;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public boolean f1267;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public boolean f1268;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public Drawable f1269;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public View f1270;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public CharSequence f1271;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public Toolbar f1272;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public int f1273;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public C1065 f1274;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public Drawable f1275;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f1276;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public CharSequence f1277;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public Window.Callback f1278;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public CharSequence f1279;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public Drawable f1280;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m1132() {
        Drawable drawable;
        int i = this.f1276;
        if ((i & 2) == 0) {
            drawable = null;
        } else if ((i & 1) == 0 || (drawable = this.f1266) == null) {
            drawable = this.f1280;
        }
        this.f1272.setLogo(drawable);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m1133(int i) {
        View view;
        Toolbar toolbar = this.f1272;
        int i2 = this.f1276 ^ i;
        this.f1276 = i;
        if (i2 != 0) {
            if ((i2 & 4) != 0) {
                if ((i & 4) != 0) {
                    m1134();
                }
                if ((this.f1276 & 4) != 0) {
                    Drawable drawable = this.f1269;
                    if (drawable == null) {
                        drawable = this.f1275;
                    }
                    toolbar.setNavigationIcon(drawable);
                } else {
                    toolbar.setNavigationIcon((Drawable) null);
                }
            }
            if ((i2 & 3) != 0) {
                m1132();
            }
            if ((i2 & 8) != 0) {
                if ((i & 8) != 0) {
                    toolbar.setTitle(this.f1279);
                    toolbar.setSubtitle(this.f1271);
                } else {
                    toolbar.setTitle((CharSequence) null);
                    toolbar.setSubtitle((CharSequence) null);
                }
            }
            if ((i2 & 16) == 0 || (view = this.f1270) == null) {
                return;
            }
            if ((i & 16) != 0) {
                toolbar.addView(view);
            } else {
                toolbar.removeView(view);
            }
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m1134() {
        if ((this.f1276 & 4) != 0) {
            boolean zIsEmpty = TextUtils.isEmpty(this.f1277);
            Toolbar toolbar = this.f1272;
            if (zIsEmpty) {
                toolbar.setNavigationContentDescription(this.f1273);
            } else {
                toolbar.setNavigationContentDescription(this.f1277);
            }
        }
    }
}
