update 弹窗接口

This commit is contained in:
zlzw 2023-09-15 16:55:36 +08:00
parent 54258c3f13
commit ea397af123

View File

@ -23,7 +23,7 @@ public class OpenAdManager {
public static final int TYPE_LIVE = 2; public static final int TYPE_LIVE = 2;
private static final String TAG = "-----弹窗-----"; private static final String TAG = "-----弹窗-----";
private Map<Integer, Boolean> showMap; private Map<Integer, Boolean> showMap;
private List<OpenAdModel> list = new ArrayList<>(); private List<OpenAdModel> list = null;
private Handler handler = new Handler(Looper.getMainLooper()); private Handler handler = new Handler(Looper.getMainLooper());
private Map<Integer, AdRunnable> runnableMap = new HashMap<>(); private Map<Integer, AdRunnable> runnableMap = new HashMap<>();
private int showType; private int showType;
@ -68,7 +68,7 @@ public class OpenAdManager {
public synchronized void show(int type,boolean isGuard) { public synchronized void show(int type,boolean isGuard) {
if (list.isEmpty()) { if (list==null) {
init(true); init(true);
return; return;
} }