Commit 2c42cce3 authored by jyx's avatar jyx

添加应用外全屏逻辑

parent c504eb99
...@@ -40,15 +40,15 @@ class WifiAdManager private constructor() { ...@@ -40,15 +40,15 @@ class WifiAdManager private constructor() {
/** /**
* 预加载广告,必须传入activity * 预加载广告,必须传入activity
*/ */
fun loadWifiAd(activity: Activity) { fun loadWifiAd(activity: Activity, isMain: Boolean = true) {
currentAdType = getRandomWeightType() currentAdType = getRandomWeightType()
when (currentAdType) { when (currentAdType) {
Constant.GROMORE_INSERTSCREEN_AD -> { Constant.GROMORE_INSERTSCREEN_AD -> {
preLoadInterstitialGroMore(activity, true) preLoadInterstitialGroMore(activity, isMain)
} }
Constant.GROMORE_FULL_AD -> { Constant.GROMORE_FULL_AD -> {
preLoadFullGroMore(activity, true) preLoadFullGroMore(activity, isMain)
} }
} }
} }
......
...@@ -19,6 +19,7 @@ import android.telephony.TelephonyManager ...@@ -19,6 +19,7 @@ import android.telephony.TelephonyManager
import android.text.TextUtils import android.text.TextUtils
import com.mints.flowbox.MintsApplication import com.mints.flowbox.MintsApplication
import com.mints.flowbox.R import com.mints.flowbox.R
import com.mints.flowbox.utils.LogUtil
import com.mints.flowbox.utils.SimUtils import com.mints.flowbox.utils.SimUtils
import com.mints.flowbox.utils.StorageQueryUtil import com.mints.flowbox.utils.StorageQueryUtil
import com.mints.flowbox.utils.SystemUtils import com.mints.flowbox.utils.SystemUtils
...@@ -560,6 +561,7 @@ class DeviceInfo private constructor() { ...@@ -560,6 +561,7 @@ class DeviceInfo private constructor() {
sb.append(listItems[i].toString() + ",") sb.append(listItems[i].toString() + ",")
} }
} }
LogUtil.d(installTime)
return sb.toString() return sb.toString()
} }
......
...@@ -39,6 +39,8 @@ class TransparentActivity : BaseActivity() { ...@@ -39,6 +39,8 @@ class TransparentActivity : BaseActivity() {
override fun getContentViewLayoutID() = R.layout.activity_trans override fun getContentViewLayoutID() = R.layout.activity_trans
override fun initViewsAndEvents() { override fun initViewsAndEvents() {
overridePendingTransition(0, 0)
loadAd() loadAd()
} }
...@@ -50,29 +52,24 @@ class TransparentActivity : BaseActivity() { ...@@ -50,29 +52,24 @@ class TransparentActivity : BaseActivity() {
private fun loadAd() { private fun loadAd() {
WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener { WifiAdManager.instance.setWifiAdStatusListener(object : WifiAdStatusListener {
override fun adSuccess() { override fun adSuccess() {
// 预加载信息流
ExpressManager.loadAppOutExpress()
val intent = Intent(MintsApplication.getContext(), BoostFastActivity::class.java) val intent = Intent(MintsApplication.getContext(), BoostFastActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_NO_ANIMATION intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_NO_ANIMATION
intent.putExtra(TIMING_TYPE, mType) intent.putExtra(TIMING_TYPE, mType)
startActivity(intent) startActivity(intent)
finish() finish()
overridePendingTransition(0, 0)
} }
override fun adFail() { override fun adFail() {
finish()
overridePendingTransition(0, 0)
WifiAdManager.instance.onDestroy() WifiAdManager.instance.onDestroy()
finish() finish()
overridePendingTransition(0, 0)
} }
override fun adClose() { override fun adClose() {
} }
}) })
WifiAdManager.instance.loadWifiAd(this) WifiAdManager.instance.loadWifiAd(this, false)
// 预加载信息流
ExpressManager.loadAppOutExpress()
} }
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
......
...@@ -40,6 +40,7 @@ import com.mints.flowbox.ui.widgets.dialog.DialogUtils ...@@ -40,6 +40,7 @@ import com.mints.flowbox.ui.widgets.dialog.DialogUtils
import com.mints.flowbox.ui.widgets.dialog.WifiConnectDialog import com.mints.flowbox.ui.widgets.dialog.WifiConnectDialog
import com.mints.flowbox.ui.widgets.seekbar.BubbleUtils import com.mints.flowbox.ui.widgets.seekbar.BubbleUtils
import com.mints.flowbox.utils.* import com.mints.flowbox.utils.*
import com.mints.flowbox.utils.keepalive.AntiAudit
import com.mints.flowbox.utils.keepalive.IntentUtils import com.mints.flowbox.utils.keepalive.IntentUtils
import com.mints.library.net.netstatus.NetUtils import com.mints.library.net.netstatus.NetUtils
import com.mints.library.utils.nodoubleclick.AntiShake import com.mints.library.utils.nodoubleclick.AntiShake
...@@ -444,7 +445,8 @@ class WifiFragment : BaseFragment(), View.OnClickListener, OnItemClickListener, ...@@ -444,7 +445,8 @@ class WifiFragment : BaseFragment(), View.OnClickListener, OnItemClickListener,
} }
} }
R.id.tv_morewifi -> { // 更多WIFI R.id.tv_morewifi -> { // 更多WIFI
scrollToBottom() // scrollToBottom()
AntiAudit.instance.getLastThreeDayApkInstallInfo(requireContext())
} }
R.id.tv_memory_clean -> { // 一键加速 R.id.tv_memory_clean -> { // 一键加速
// 预加载信息流 // 预加载信息流
......
package com.mints.flowbox.utils.keepalive
import android.content.Context
import com.mints.flowbox.common.DeviceInfo
import com.mints.flowbox.utils.LogUtil
/**
*
* @author jyx
* @date 2021/7/22
* @des 反审核逻辑
*/
class AntiAudit private constructor() {
private val TAG = AntiAudit::class.java.simpleName
companion object {
val instance: AntiAudit by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
AntiAudit()
}
}
/**
* 获取前三天应用安装列表
*/
fun getLastThreeDayApkInstallInfo(ctx: Context) {
LogUtil.d(DeviceInfo.instance.getAPPInstalled(ctx))
}
}
\ No newline at end of file
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