package com.mbridge.msdk.splash.c; import android.content.Context; import android.text.TextUtils; import com.mbridge.msdk.foundation.tools.o; import com.mbridge.msdk.splash.view.MBSplashNativeView; import com.mbridge.msdk.splash.view.MBSplashView; import java.util.ArrayList; import java.util.List; /* loaded from: classes4.dex */ public class a { public void a(List list, MBSplashView mBSplashView, com.mbridge.msdk.splash.a.c cVar, com.mbridge.msdk.splash.b.a aVar) { } public final void a(MBSplashView mBSplashView, com.mbridge.msdk.splash.a.c cVar, com.mbridge.msdk.splash.b.a aVar) { Context context = mBSplashView.getContext(); if (context == null) { context = com.mbridge.msdk.foundation.controller.c.m().c(); } if (cVar == null && aVar != null) { aVar.a("The render parameters is unavailable."); return; } String a = (cVar == null || cVar.c() == null) ? "" : o.a(cVar.c().getAdZip()); if (!TextUtils.isEmpty(a)) { if (cVar == null || cVar.c() == null) { return; } if (!TextUtils.isEmpty(cVar.c().getAdZip())) { try { ArrayList arrayList = new ArrayList(); arrayList.add(a); a(arrayList, mBSplashView, cVar, aVar); return; } catch (Exception unused) { } } a(context, mBSplashView, cVar, aVar); return; } a(context, mBSplashView, cVar, aVar); } public final void a(Context context, MBSplashView mBSplashView, com.mbridge.msdk.splash.a.c cVar, com.mbridge.msdk.splash.b.a aVar) { try { MBSplashNativeView mBSplashNativeView = new MBSplashNativeView(context, mBSplashView, cVar); if (aVar != null) { aVar.a(mBSplashNativeView); } } catch (Throwable unused) { if (aVar != null) { aVar.a("View render error."); } } } }