package uf;

import android.app.Activity;
import android.widget.TextView;
import ie.o3;
import ie.q3;
import org.drive_hunter.R;
import xyz.stream.view.BindingDialogBuilder;
import xyz.stream.view.UiUtils;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class j implements BindingDialogBuilder.DialogSetup {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f33489b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f33490c;

    public /* synthetic */ j(Object obj, Object obj2, int i10) {
        this.f33488a = i10;
        this.f33490c = obj;
        this.f33489b = obj2;
    }

    @Override // xyz.stream.view.BindingDialogBuilder.DialogSetup
    public final void setup(v3.a aVar, e.m mVar) {
        int i10 = this.f33488a;
        Object obj = this.f33489b;
        Object obj2 = this.f33490c;
        switch (i10) {
            case 0:
                String str = (String) obj;
                q3 q3Var = (q3) aVar;
                UiUtils.adaptActivityDensity((Activity) obj2);
                q3Var.f27388b.setImageResource(R.mipmap.success);
                if (str != null) {
                    TextView textView = q3Var.f27389c;
                    textView.setTextSize(40.0f);
                    textView.setText(str);
                }
                break;
            case 1:
                String str2 = (String) obj;
                String str3 = (String) obj2;
                o3 o3Var = (o3) aVar;
                if (str2 == null || str2.isEmpty()) {
                    o3Var.f27307f.setVisibility(8);
                } else {
                    o3Var.f27307f.setVisibility(0);
                    o3Var.f27305d.setText(str2);
                }
                if (str3 == null || str3.isEmpty()) {
                    o3Var.f27308g.setVisibility(8);
                } else {
                    o3Var.f27308g.setVisibility(0);
                    o3Var.f27304c.setText(str3);
                }
                break;
            case 2:
                ((TextView) ((BindingDialogBuilder.ViewProvider) obj2).get(aVar)).setText((CharSequence) obj);
                break;
            default:
                ((BindingDialogBuilder.ViewProvider) obj2).get(aVar).setOnClickListener(new lf.j((BindingDialogBuilder.DialogClick) obj, aVar, mVar));
                break;
        }
    }

    public /* synthetic */ j(String str, String str2) {
        this.f33488a = 1;
        this.f33489b = str;
        this.f33490c = str2;
    }
}
