From 2f1ab8af88cae4e723126ea5cf2f7d42dff7dbdc Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 30 九月 2021 13:43:56 +0800 Subject: [PATCH] 穿山甲广告SDK更新,隐私合规修改 --- BuWanVideo/src/com/weikou/beibeivideo/util/ad/SplashAdUtil.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ad/SplashAdUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ad/SplashAdUtil.java index 191ce66..11f011e 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/util/ad/SplashAdUtil.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ad/SplashAdUtil.java @@ -123,7 +123,16 @@ private static void loadCSJ(String code, Context context, final View skip, final SplashAdListener splashAdListener) { if (skip != null) skip.setVisibility(View.GONE); - TTAdManager ttAdManager = TTAdManagerHolder.get(); + TTAdManager ttAdManager = null; + + try { + ttAdManager = TTAdManagerHolder.get(); + } catch (Exception e) { + } + if (ttAdManager == null) { + splashAdListener.noAd(); + return; + } TTAdNative mTTAdNative = ttAdManager.createAdNative(context.getApplicationContext()); //绌垮北鐢插箍鍛� int width = DimenUtils.getScreenWidth(context.getApplicationContext()); -- Gitblit v1.8.0