From 2f1ab8af88cae4e723126ea5cf2f7d42dff7dbdc Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 30 九月 2021 13:43:56 +0800
Subject: [PATCH] 穿山甲广告SDK更新,隐私合规修改

---
 library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java b/library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java
index 7d9c55d..51b5cb8 100644
--- a/library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java
+++ b/library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java
@@ -4,10 +4,10 @@
 import android.graphics.Color;
 import android.graphics.Rect;
 import android.os.Bundle;
-import android.support.v4.widget.SwipeRefreshLayout;
-import android.support.v7.widget.GridLayoutManager;
-import android.support.v7.widget.LinearLayoutManager;
-import android.support.v7.widget.RecyclerView;
+import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
+import androidx.recyclerview.widget.GridLayoutManager;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
 import android.util.Log;
 import android.view.Gravity;
 import android.view.View;
@@ -65,12 +65,15 @@
     }
 
 
-    public static BaiDuCPUContentFragment newInstance(BaiDuCPUType spinnerItem, int viewType, boolean showAd, BaiduCPUContentAdapter.IBaiDuCPUItemClickListener baiDuCPUItemClickListener) {
+    public static BaiDuCPUContentFragment newInstance(BaiDuCPUType spinnerItem, int viewType, boolean showAd, int refreshColor, BaiduCPUContentAdapter.IBaiDuCPUItemClickListener baiDuCPUItemClickListener) {
         BaiDuCPUContentFragment fragment = new BaiDuCPUContentFragment();
         Bundle bundle = new Bundle();
         bundle.putSerializable("item", spinnerItem);
         bundle.putInt("viewType", viewType);
         bundle.putBoolean("showAd", showAd);
+        bundle.putInt("refreshColor", refreshColor);
+
+
         fragment.setArguments(bundle);
         fragment.setBaiDuCPUItemClickListener(baiDuCPUItemClickListener);
         return fragment;
@@ -177,6 +180,8 @@
             return;
         viewType = bundle.getInt("viewType");
         showAd = bundle.getBoolean("showAd", true);
+        srl_news.setColorSchemeColors(bundle.getInt("refreshColor"));
+
         bundle.clear();
         mChannelId = item.getId();
 
@@ -308,4 +313,5 @@
 
     }
 
+
 }

--
Gitblit v1.8.0