From 27412be889d0a58a93fd20d40d40ff22afe4990c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 15 八月 2020 17:39:24 +0800
Subject: [PATCH] '视频详情页面完善'

---
 BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/RecommendNewAdapter.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/RecommendNewAdapter.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/RecommendNewAdapter.java
index 539da02..320027e 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/RecommendNewAdapter.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/RecommendNewAdapter.java
@@ -295,6 +295,11 @@
 //                        }
 //                    });
                     ad.getGdt().render();
+                    if (ad.getGdt().getParent() != null) {
+                        ViewGroup viewGroup = (ViewGroup) (ad.getGdt().getParent());
+                        viewGroup.removeAllViews();
+                    }
+
                     holder.fl_ad.addView(ad.getGdt());
                 } else if (ad.getCsj() != null) {
                     ViewParent parent = ad.getCsj().getExpressAdView().getParent();

--
Gitblit v1.8.0