package k0;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class f extends Drawable.ConstantState {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f28966a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Drawable.ConstantState f28967b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public ColorStateList f28968c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public PorterDuff.Mode f28969d;

    public f(@Nullable f fVar) {
        this.f28968c = null;
        this.f28969d = d.f28958g;
        if (fVar != null) {
            this.f28966a = fVar.f28966a;
            this.f28967b = fVar.f28967b;
            this.f28968c = fVar.f28968c;
            this.f28969d = fVar.f28969d;
        }
    }

    @Override // android.graphics.drawable.Drawable.ConstantState
    public final int getChangingConfigurations() {
        int i10 = this.f28966a;
        Drawable.ConstantState constantState = this.f28967b;
        return i10 | (constantState != null ? constantState.getChangingConfigurations() : 0);
    }

    @Override // android.graphics.drawable.Drawable.ConstantState
    public final Drawable newDrawable() {
        return newDrawable(null);
    }

    @Override // android.graphics.drawable.Drawable.ConstantState
    @NonNull
    public Drawable newDrawable(@Nullable Resources resources) {
        return new e(this, resources);
    }
}
