Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
C
clean master
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
clean master
Commits
d26e0468
Commit
d26e0468
authored
May 17, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启动页对齐正式版本,添加通知跳转上报
parent
a4b70cc6
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
7 deletions
+23
-7
checksums.lock
.gradle/8.0/checksums/checksums.lock
+0
-0
dependencies-accessors.lock
...le/8.0/dependencies-accessors/dependencies-accessors.lock
+0
-0
gc.properties
.gradle/8.0/dependencies-accessors/gc.properties
+0
-0
last-build.bin
.gradle/8.0/fileChanges/last-build.bin
+0
-0
gc.properties
.gradle/8.0/gc.properties
+0
-0
cache.properties
.gradle/buildOutputCleanup/cache.properties
+0
-2
config.properties
.gradle/config.properties
+0
-2
file-system.probe
.gradle/file-system.probe
+0
-0
gc.properties
.gradle/vcs-1/gc.properties
+0
-0
SplashActivity.kt
...src/main/java/com/zxhyis/toolss/ui/page/SplashActivity.kt
+23
-3
No files found.
.gradle/8.0/checksums/checksums.lock
deleted
100644 → 0
View file @
a4b70cc6
File deleted
.gradle/8.0/dependencies-accessors/dependencies-accessors.lock
deleted
100644 → 0
View file @
a4b70cc6
File deleted
.gradle/8.0/dependencies-accessors/gc.properties
deleted
100644 → 0
View file @
a4b70cc6
.gradle/8.0/fileChanges/last-build.bin
deleted
100644 → 0
View file @
a4b70cc6
File deleted
.gradle/8.0/gc.properties
deleted
100644 → 0
View file @
a4b70cc6
.gradle/buildOutputCleanup/cache.properties
deleted
100644 → 0
View file @
a4b70cc6
#Wed May 15 15:19:32 CST 2024
gradle.version
=
8.0
.gradle/config.properties
deleted
100644 → 0
View file @
a4b70cc6
#Wed May 15 09:35:29 CST 2024
java.home
=
D
\:\\
AS Iguana
\\
jbr
.gradle/file-system.probe
deleted
100644 → 0
View file @
a4b70cc6
File deleted
.gradle/vcs-1/gc.properties
deleted
100644 → 0
View file @
a4b70cc6
app/src/main/java/com/zxhyis/toolss/ui/page/SplashActivity.kt
View file @
d26e0468
...
...
@@ -17,8 +17,10 @@ import com.blankj.utilcode.util.SPUtils
import
com.blankj.utilcode.util.ToastUtils
import
com.zxhyis.toolss.FileApp
import
com.zxhyis.toolss.R
import
com.zxhyis.toolss.ad.AdUtils
import
com.zxhyis.toolss.ad.AdmobUtils
import
com.zxhyis.toolss.ad.ConfigHelper
import
com.zxhyis.toolss.ad.EventHelper
import
com.zxhyis.toolss.ad.bean.PushCfg
import
com.zxhyis.toolss.base.TopActivity
import
com.zxhyis.toolss.common.notification.AppService
...
...
@@ -32,7 +34,6 @@ import com.zxhyis.toolss.ui.page.appmanager.AppManager2Activity
import
com.zxhyis.toolss.ui.page.bigfileclean.BigFileCleanActivity
import
com.zxhyis.toolss.ui.page.notifaction.NotificationCleanActivity
import
com.zxhyis.toolss.ui.page.notifaction.NotificationGuestActivity
import
com.zxhyis.toolss.ui.page.photocompress.photo.CompressioningActivity
import
com.zxhyis.toolss.ui.page.photocompress.photo.StartCompressionPhotoActivity
import
com.zxhyis.toolss.ui.page.recentusage.RecentAppActivity
import
com.zxhyis.toolss.ui.page.speed.BatteryOptimizerActivity
...
...
@@ -136,7 +137,7 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() {
vb
.
idTvPrivacyPolic
.
setOnClick
(
javaClass
.
simpleName
)
{
val
intent
=
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
"https://sites.google.com/view/
abdoze
/home"
)
Uri
.
parse
(
"https://sites.google.com/view/
clean-mas
/home"
)
)
startActivity
(
intent
)
}
...
...
@@ -150,6 +151,8 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() {
}
private
fun
loadAd
()
{
AdUtils
.
getLoadingTime
()
val
loadTime
=
SPUtils
.
getInstance
().
getInt
(
"loading_page_time"
)
MainScope
().
launch
(
Dispatchers
.
Main
)
{
launch
(
Dispatchers
.
IO
)
{
ConfigHelper
.
appList
=
AppUtils
.
getAppsInfo
().
shuffled
()
...
...
@@ -158,7 +161,7 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() {
while
(
true
)
{
delay
(
200
)
time
+=
200
if
(
vb
.
pb
.
progress
<=
98
&&
time
<=
15
000
)
{
if
(
vb
.
pb
.
progress
<=
98
&&
time
<=
loadTime
*
1
000
)
{
vb
.
pb
.
progress
=
(
vb
.
pb
.
progress
+
Random
.
nextInt
(
5
)).
coerceAtMost
(
98
)
}
else
if
(
vb
.
pb
.
progress
!=
99
&&
!
isPause
)
{
break
...
...
@@ -203,72 +206,89 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() {
//=================================主动广播=======================================
PushCfg
.
ID_JUNK_CLEAN_PUSH
->
{
startActivity
<
PrepareScanActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=PrepareScanActivity"
)
}
PushCfg
.
ID_VIRUS_PUSH
->
{
startActivity
<
VirusActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=VirusActivity"
)
}
PushCfg
.
ID_BIGFILE_PUSH
->
{
startActivity
<
BigFileCleanActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=BigFileCleanActivity"
)
}
PushCfg
.
ID_PHOTO_COMPRESS
->
{
startActivity
<
StartCompressionPhotoActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=StartCompressionPhotoActivity"
)
}
PushCfg
.
ID_APP_MANAGER
->
{
startActivity
<
AppManager2Activity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=AppManager2Activity"
)
}
PushCfg
.
ID_NETWORK_TRAFFIC
->
{
startActivity
<
NetWorkActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=NetWorkActivity"
)
}
PushCfg
.
ID_CLEAN_NOTIFICATION
->
{
if
(
SPUtils
.
getInstance
().
getBoolean
(
"notification_guest"
,
false
))
{
startActivity
(
Intent
(
this
,
NotificationCleanActivity
::
class
.
java
))
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=NotificationCleanActivity"
)
}
else
{
startActivity
(
Intent
(
this
,
NotificationGuestActivity
::
class
.
java
))
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=NotificationGuestActivity"
)
}
}
PushCfg
.
ID_RECENT_USE_APP
->
{
startActivity
<
RecentAppActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=RecentAppActivity"
)
}
PushCfg
.
ID_SIMILAR_IMAGE
->
{
startActivity
<
RepeaterdPhotoActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=RepeaterdPhotoActivity"
)
}
PushCfg
.
ID_CLEAN_SPEAKER
->
{
startActivity
<
SpeakerCleanerActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=SpeakerCleanerActivity"
)
}
PushCfg
.
ID_BATTERY_OPTIMIZATION
->
{
startActivity
<
BatteryOptimizerActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=BatteryOptimizerActivity"
)
}
//================================被动广播=========================================
PushCfg
.
ID_INSTALL_PACKAGE_PUSH
->
{
startActivity
<
VirusActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=VirusActivity"
)
}
PushCfg
.
ID_UNINSTALL_PACKAGE_PUSH
->
{
startActivity
<
PrepareScanActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=PrepareScanActivity"
)
}
PushCfg
.
ID_CHARGE
->
{
startActivity
<
BatteryInfoActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=BatteryInfoActivity"
)
}
PushCfg
.
ID_LOW_BATTERY_PUSH
->
{
startActivity
<
BatteryInfoActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=BatteryInfoActivity"
)
}
PushCfg
.
ID_PHONE_ACCELERATE
->
{
startActivity
<
SpeedActivity
>()
EventHelper
.
event
(
"notification_jump"
,
"JumpType=$JumpType activity=SpeedActivity"
)
}
else
->
{
...
...
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