Commit 5ba7dd24 authored by mengcuiguang's avatar mengcuiguang

隐藏广告

parent d5f3b302
......@@ -113,7 +113,7 @@
android:value="${JPUSH_CHANNEL}" />
<activity
android:name="com.wenshu.youyou.ui.activitys.SplashYlhActivity"
android:name="com.wenshu.youyou.ui.activitys.SplashActivity"
android:theme="@style/NormalSplash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -46,7 +46,7 @@ class MorningClockActivity : BaseActivity()
override fun onResume() {
super.onResume()
initExpress()
// initExpress()
morningClockPresenter.getUpEarlySignMsg()
}
......
......@@ -153,8 +153,8 @@ class MyFragment : BaseFragment(),
}
// 防止banner刷新太快
if (AntiShake.check(fl_my_banner?.id)) return
BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner)
// if (AntiShake.check(fl_my_banner?.id)) return
// BannerManager.getTtBanner(TtCsjAdManager.TT_AD_BANNER_MY, fl_my_banner)
// 刷新喜马拉雅信息流
TTPreLoadExpressXmlyManager.getInstance().loadTtFrameLayout()
......
......@@ -102,32 +102,32 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
if (count == 0) {
// LogUtil.d("ForegroundOrBackground", System.currentTimeMillis() - leaveTime + " onActivityStarted");
// 60秒后打开应用 显示开屏广告
if (System.currentTimeMillis() - leaveTime >= 60000) {
if (isYlhSplash) {
isYlhSplash = false;
if (ylhIntent == null) {
// 优量汇广告
ylhIntent = new Intent(activity, SplashADActivity.class);
}
activity.startActivity(ylhIntent);
} else {
isYlhSplash = true;
if (csjIntent == null) {
// 快手广告
csjIntent = new Intent(activity, SplashCsjADActivity.class);
}
activity.startActivity(csjIntent);
// if (ksIntent == null) {
// if (System.currentTimeMillis() - leaveTime >= 60000) {
//
// if (isYlhSplash) {
// isYlhSplash = false;
//
// if (ylhIntent == null) {
// // 优量汇广告
// ylhIntent = new Intent(activity, SplashADActivity.class);
// }
// activity.startActivity(ylhIntent);
// } else {
// isYlhSplash = true;
//
// if (csjIntent == null) {
// // 快手广告
// ksIntent = new Intent(activity, SplashKsADActivity.class);
// csjIntent = new Intent(activity, SplashCsjADActivity.class);
// }
// activity.startActivity(ksIntent);
}
}
// activity.startActivity(csjIntent);
//
//// if (ksIntent == null) {
//// // 快手广告
//// ksIntent = new Intent(activity, SplashKsADActivity.class);
//// }
//// activity.startActivity(ksIntent);
// }
// }
}
count++;
}
......
......@@ -170,6 +170,7 @@
</FrameLayout>
<FrameLayout
android:visibility="gone"
android:id="@+id/flAwardAd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
......
......@@ -42,6 +42,7 @@
</FrameLayout>
<FrameLayout
android:visibility="gone"
android:id="@+id/flSubsidykAd"
android:layout_width="340dp"
android:layout_height="340dp"
......
......@@ -85,6 +85,7 @@
</LinearLayout>
<FrameLayout
android:visibility="gone"
android:id="@+id/flMorningClockAd"
android:layout_width="340dp"
android:layout_height="340dp"
......
......@@ -41,6 +41,7 @@
</FrameLayout>
<FrameLayout
android:visibility="gone"
android:id="@+id/flWalkAd"
android:layout_width="340dp"
android:layout_height="340dp"
......
......@@ -40,6 +40,7 @@
</FrameLayout>
<FrameLayout
android:visibility="gone"
android:id="@+id/flWaterAd"
android:layout_width="340dp"
android:layout_height="340dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment