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
41cea74f
Commit
41cea74f
authored
Aug 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决冲突
parent
16ff5153
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
ApkActivity.kt
...a/com/mints/flowbox/ui/activitys/keepalive/ApkActivity.kt
+5
-3
BoostFastActivity.kt
...mints/flowbox/ui/activitys/keepalive/BoostFastActivity.kt
+1
-1
ScreenActivity.kt
...om/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
+2
-1
TriggerActivity.kt
...m/mints/flowbox/ui/activitys/keepalive/TriggerActivity.kt
+7
-7
No files found.
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/ApkActivity.kt
View file @
41cea74f
...
@@ -25,6 +25,8 @@ import kotlinx.android.synthetic.main.activity_apk.fl_ad
...
@@ -25,6 +25,8 @@ import kotlinx.android.synthetic.main.activity_apk.fl_ad
import
kotlinx.android.synthetic.main.activity_apk.ivImg
import
kotlinx.android.synthetic.main.activity_apk.ivImg
import
kotlinx.android.synthetic.main.activity_apk.iv_close
import
kotlinx.android.synthetic.main.activity_apk.iv_close
import
kotlinx.android.synthetic.main.activity_apk.tvInfo
import
kotlinx.android.synthetic.main.activity_apk.tvInfo
import
kotlinx.android.synthetic.main.activity_apk.tvInfo2
import
kotlinx.android.synthetic.main.activity_timing.*
import
kotlin.random.Random
import
kotlin.random.Random
/**
/**
...
@@ -80,7 +82,7 @@ class ApkActivity : BaseActivity() {
...
@@ -80,7 +82,7 @@ class ApkActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
INSTALL_APK
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
INSTALL_APK
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
text
=
"测试 -> 当前应用安装剩余次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前应用安装剩余次数:"
+
sp
.
getInt
(
WifiDataManager
.
INSTALL_APK
,
WifiDataManager
.
INSTALL_APK
,
0
0
...
@@ -104,7 +106,7 @@ class ApkActivity : BaseActivity() {
...
@@ -104,7 +106,7 @@ class ApkActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
UPDATE_APK
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
UPDATE_APK
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
text
=
"测试 -> 当前应用更新剩余次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前应用更新剩余次数:"
+
sp
.
getInt
(
WifiDataManager
.
UPDATE_APK
,
WifiDataManager
.
UPDATE_APK
,
0
0
...
@@ -127,7 +129,7 @@ class ApkActivity : BaseActivity() {
...
@@ -127,7 +129,7 @@ class ApkActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
UNINSTALL_APK
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
UNINSTALL_APK
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前应用卸载剩余次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前应用卸载剩余次数:"
+
sp
.
getInt
(
WifiDataManager
.
UNINSTALL_APK
,
WifiDataManager
.
UNINSTALL_APK
,
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/BoostFastActivity.kt
View file @
41cea74f
...
@@ -135,7 +135,7 @@ class BoostFastActivity : Activity() {
...
@@ -135,7 +135,7 @@ class BoostFastActivity : Activity() {
overridePendingTransition
(
0
,
0
)
overridePendingTransition
(
0
,
0
)
}
}
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 定时 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 定时 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
TIMING
,
WifiDataManager
.
TIMING
,
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
View file @
41cea74f
...
@@ -20,6 +20,7 @@ import com.mints.flowbox.utils.ToolUtil
...
@@ -20,6 +20,7 @@ import com.mints.flowbox.utils.ToolUtil
import
com.mints.library.utils.nodoubleclick.AntiShake
import
com.mints.library.utils.nodoubleclick.AntiShake
import
kotlinx.android.synthetic.main.activity_screen.*
import
kotlinx.android.synthetic.main.activity_screen.*
import
kotlinx.android.synthetic.main.activity_screen.fl_ad
import
kotlinx.android.synthetic.main.activity_screen.fl_ad
import
kotlinx.android.synthetic.main.activity_timing.*
import
java.util.*
import
java.util.*
class
ScreenActivity
:
OutAppActivity
(),
View
.
OnClickListener
{
class
ScreenActivity
:
OutAppActivity
(),
View
.
OnClickListener
{
...
@@ -62,7 +63,7 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
...
@@ -62,7 +63,7 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
tvDate
.
text
=
TimeRender
.
getWeek
()
+
" "
+
monthDay
tvDate
.
text
=
TimeRender
.
getWeek
()
+
" "
+
monthDay
tvTime
.
text
=
time
tvTime
.
text
=
time
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvDate
.
text
=
"测试 -> 当前锁屏已弹出次数:"
+
sp
.
getInt
(
tvDate
.
text
=
"测试 -> 当前锁屏已弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
LOCK_ON
,
WifiDataManager
.
LOCK_ON
,
0
0
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/TriggerActivity.kt
View file @
41cea74f
...
@@ -108,7 +108,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -108,7 +108,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
WIFI_ON
,
WifiDataManager
.
WIFI_ON
,
...
@@ -128,7 +128,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -128,7 +128,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
WIFI_ON
,
WifiDataManager
.
WIFI_ON
,
...
@@ -148,7 +148,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -148,7 +148,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_ON
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 连接WIFI 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
WIFI_ON
,
WifiDataManager
.
WIFI_ON
,
...
@@ -165,7 +165,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -165,7 +165,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_OFF
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_OFF
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 断开WIFI 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 断开WIFI 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
WIFI_OFF
,
WifiDataManager
.
WIFI_OFF
,
...
@@ -182,7 +182,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -182,7 +182,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_OFF
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
WIFI_OFF
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 断开WIFI 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 断开WIFI 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
WIFI_OFF
,
WifiDataManager
.
WIFI_OFF
,
...
@@ -219,7 +219,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -219,7 +219,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
BATTERY_OFF
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
BATTERY_OFF
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 拔电 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 拔电 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
BATTERY_OFF
,
WifiDataManager
.
BATTERY_OFF
,
...
@@ -239,7 +239,7 @@ class TriggerActivity : BaseActivity() {
...
@@ -239,7 +239,7 @@ class TriggerActivity : BaseActivity() {
WifiDataManager
.
increaseCount
(
WifiDataManager
.
TELEPHONE_OFF
)
WifiDataManager
.
increaseCount
(
WifiDataManager
.
TELEPHONE_OFF
)
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
&&
tvInfo2
!=
null
)
{
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
visibility
=
View
.
VISIBLE
tvInfo2
.
text
=
"测试 -> 当前 电话挂断 弹出次数:"
+
sp
.
getInt
(
tvInfo2
.
text
=
"测试 -> 当前 电话挂断 弹出次数:"
+
sp
.
getInt
(
WifiDataManager
.
TELEPHONE_OFF
,
WifiDataManager
.
TELEPHONE_OFF
,
...
...
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