package com.bytedance.sdk.component.adexpress.yz;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;

/* JADX INFO: loaded from: classes.dex */
public class lb {
    public static Drawable fm(Context context, com.bytedance.sdk.component.adexpress.dynamic.yz.wsy wsyVar) {
        if (context == null || wsyVar == null) {
            return null;
        }
        return fm(context, (int) wsy.fm(context, wsyVar.qhl()), wsyVar.irt(), wsyVar.gzf());
    }

    public static Drawable fm(Context context, int i10, int i11, int i12) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setShape(1);
        if (context != null) {
            gradientDrawable.setStroke(i10, i11);
        }
        gradientDrawable.setColor(i12);
        return gradientDrawable;
    }
}
