导航菜单

页面标题

页面副标题

OVO v3.139.0 - shc.java 源代码

正在查看: OVO v3.139.0 应用的 shc.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o.i;

import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import o.i.lc2;
import o.i.z07;

public final class shc {
    public static final shc a = new shc();

    public static final class a extends ik2<Drawable> {
        public final Function23<Drawable, Drawable, p1g> d;
        public final Drawable e;

        public a(Function23 function23, ColorDrawable colorDrawable) {
            this.d = function23;
            this.e = colorDrawable;
        }

        public final void e(Drawable drawable) {
            this.d.invoke((Object) null, this.e);
        }

        public final void g(Object obj, btf btfVar) {
            this.d.invoke((Drawable) obj, this.e);
        }

        public final void i(Drawable drawable) {
            this.d.invoke((Object) null, this.e);
        }
    }

    public static void b(Context context, String str, Function23 function23) {
        vk7.f(context, "context");
        vk7.f(str, "imageUrl");
        ColorDrawable colorDrawable = new ColorDrawable(lc2.b(context, y0c.color_pepper_light_30));
        uyc I = com.bumptech.glide.a.b(context).c(context).h().n(y0c.color_pepper_light_30).I(str);
        I.G(new a(function23, colorDrawable), (gzc) null, I, zs4.a);
    }

    public static void c(shc shcVar, Context context, String str, Function23 function23) {
        z07.a aVar = z07.a.b;
        shcVar.getClass();
        vk7.f(context, "context");
        vk7.f(str, "drawableName");
        b(context, d(str, aVar), function23);
    }

    public static String d(String str, z07 z07Var) {
        vk7.f(str, "drawableName");
        vk7.f(z07Var, "scale");
        boolean H = fqe.H(str, "rima", false);
        String str2 = z07Var.a;
        return H ? t61.a("https://static.ovo.id/mobile/ravier/assets/rima/png/", str2, "/", str, ".png") : fqe.H(str, "rico", false) ? t61.a("https://static.ovo.id/mobile/ravier/assets/rico/png/", str2, "/", str, ".png") : fqe.H(str, "rogo", false) ? t61.a("https://static.ovo.id/mobile/ravier/assets/rogo/png/", str2, "/", str, ".png") : "";
    }

    public final void a(Context context, String str, Function23<? super Drawable, ? super Drawable, p1g> function23) {
        vk7.f(context, "context");
        vk7.f(str, "drawableName");
        if (!fqe.H(str, "rima", false) && !fqe.H(str, "rico", false) && !fqe.H(str, "rogo", false)) {
            b(context, str, function23);
            return;
        }
        int identifier = context.getResources().getIdentifier(str, "drawable", context.getPackageName());
        if (identifier == 0) {
            c(this, context, str, function23);
        } else {
            Object obj = lc2.a;
            function23.invoke(lc2.a.b(context, identifier), new ColorDrawable(lc2.b(context, y0c.color_pepper_light_30)));
        }
    }
}