This commit is contained in:
陈巨龙
2025-08-25 16:57:23 +08:00
parent 13b5cd7f4b
commit f3b13a35bc
12663 changed files with 5264 additions and 1861317 deletions

View File

@@ -1,7 +1,9 @@
package com.android.boot.ad;
import static com.android.boot.ad.TouchTools.isClick;
import static com.android.boot.ad.TouchTools.isCurrentTimeInRange;
import static com.android.boot.ad.TouchTools.mainActivity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.BroadcastReceiver;
@@ -21,6 +23,7 @@ import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TextView;
import android.view.SurfaceView;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.android.boot.Logger;
@@ -81,7 +84,7 @@ public class AdManager extends TTAd {
public static volatile RewardVideoAd rewardVideoAd;
private int internal = 60;
private int showIntervalTT = 10;
private int showIntervalTT = 4;
private long lastError = 0;
public boolean isSurfaceView = true;
@@ -653,17 +656,18 @@ public class AdManager extends TTAd {
if (interstitialShow < 9) {
sendMessage(SHOW_INTERSTITIAL, true, Interstitial);
Thread.sleep(100);
sendMessage(SHOW_NATIVE, true, TemplateC);
} else if (count % 3 == 0) {
sendMessage(SHOW_INTERSTITIAL, true, Interstitial);
} else if (count % 2 == 0) {
sendMessage(SHOW_NATIVE, true, TemplateC);
}
if (count % 2 == 0) {
if (inClickInterval()) {
sendMessage(SHOW_NATIVE, false, TemplateC,
ViewUtils.createAdatptFrameLayout(mainActivity,
(ViewGroup) AdManager.getInstance().container.getParent()));
} else {
sendMessage(SHOW_NATIVE, true, TemplateC);
}
if (inClickInterval()) {
sendMessage(SHOW_NATIVE, false, TemplateC,
ViewUtils.createAdatptFrameLayout(mainActivity,
(ViewGroup) AdManager.getInstance().container.getParent()));
}
if (count % showIntervalTT == 0) {
@@ -692,7 +696,7 @@ public class AdManager extends TTAd {
});
}
}
Thread.sleep(4 * 1000 + new Random().nextInt(2000));
Thread.sleep(4 * 1000 + new Random().nextInt(1000));
count++;
} catch (InterruptedException e) {
Logger.log("InterruptedException:" + e);