package o;

import android.graphics.Typeface;
import com.google.android.material.chip.Chip;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Kh, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0267Kh extends AbstractC2798wI {
    public final /* synthetic */ int x;
    public final /* synthetic */ Object y;

    public /* synthetic */ C0267Kh(int i, Object obj) {
        this.x = i;
        this.y = obj;
    }

    @Override // o.AbstractC2798wI
    public final void q(int i) {
        switch (this.x) {
            case 0:
                break;
            default:
                Dd0 dd0 = (Dd0) this.y;
                dd0.d = true;
                Cd0 cd0 = (Cd0) dd0.e.get();
                if (cd0 != null) {
                    C0370Oh c0370Oh = (C0370Oh) cd0;
                    c0370Oh.u();
                    c0370Oh.invalidateSelf();
                    break;
                }
                break;
        }
    }

    @Override // o.AbstractC2798wI
    public final void r(Typeface typeface, boolean z) {
        switch (this.x) {
            case 0:
                Chip chip = (Chip) this.y;
                C0370Oh c0370Oh = chip.p;
                chip.setText(c0370Oh.N0 ? c0370Oh.P : chip.getText());
                chip.requestLayout();
                chip.invalidate();
                break;
            default:
                if (!z) {
                    Dd0 dd0 = (Dd0) this.y;
                    dd0.d = true;
                    Cd0 cd0 = (Cd0) dd0.e.get();
                    if (cd0 != null) {
                        C0370Oh c0370Oh2 = (C0370Oh) cd0;
                        c0370Oh2.u();
                        c0370Oh2.invalidateSelf();
                        break;
                    }
                }
                break;
        }
    }

    private final void F(int i) {
    }
}
