Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
2c42cce3
Commit
2c42cce3
authored
Jul 22, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加应用外全屏逻辑
parent
c504eb99
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
12 deletions
+43
-12
WifiAdManager.kt
app/src/main/java/com/mints/flowbox/ad/wifi/WifiAdManager.kt
+3
-3
DeviceInfo.kt
app/src/main/java/com/mints/flowbox/common/DeviceInfo.kt
+2
-0
TransparentActivity.kt
...nts/flowbox/ui/activitys/keepalive/TransparentActivity.kt
+5
-8
WifiFragment.kt
...c/main/java/com/mints/flowbox/ui/fragment/WifiFragment.kt
+3
-1
AntiAudit.kt
.../main/java/com/mints/flowbox/utils/keepalive/AntiAudit.kt
+30
-0
No files found.
app/src/main/java/com/mints/flowbox/ad/wifi/WifiAdManager.kt
View file @
2c42cce3
...
@@ -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
)
}
}
}
}
}
}
...
...
app/src/main/java/com/mints/flowbox/common/DeviceInfo.kt
View file @
2c42cce3
...
@@ -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
()
}
}
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/TransparentActivity.kt
View file @
2c42cce3
...
@@ -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
?)
{
...
...
app/src/main/java/com/mints/flowbox/ui/fragment/WifiFragment.kt
View file @
2c42cce3
...
@@ -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
->
{
// 一键加速
// 预加载信息流
// 预加载信息流
...
...
app/src/main/java/com/mints/flowbox/utils/keepalive/AntiAudit.kt
0 → 100644
View file @
2c42cce3
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment