- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
58 lines
2.0 KiB
Java
58 lines
2.0 KiB
Java
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<String> 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.");
|
|
}
|
|
}
|
|
}
|
|
}
|