Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy Cleaner Junk
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
Easy Cleaner Junk
Commits
1ddd2d2a
Commit
1ddd2d2a
authored
Jul 27, 2024
by
leichao.gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
8737d7ce
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
6 deletions
+48
-6
MyApplication.kt
.../main/java/com/test/easy/easycleanerjunk/MyApplication.kt
+0
-2
DeviceScanActivity.kt
.../test/easy/easycleanerjunk/activity/DeviceScanActivity.kt
+24
-4
AppManagerAnimationActivity.kt
...erjunk/activity/appmanager/AppManagerAnimationActivity.kt
+4
-0
LargeFileAnimationActivity.kt
...anerjunk/activity/largefile/LargeFileAnimationActivity.kt
+4
-0
PrepareScanActivity.kt
.../easycleanerjunk/activity/scanjunk/PrepareScanActivity.kt
+4
-0
WhatsAppCleanerAnimationActivity.kt
...unk/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
+4
-0
ConfigBean.kt
...ain/java/com/test/easy/easycleanerjunk/bean/ConfigBean.kt
+2
-0
ComUtils.kt
...main/java/com/test/easy/easycleanerjunk/helps/ComUtils.kt
+6
-0
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/MyApplication.kt
View file @
1ddd2d2a
...
...
@@ -54,8 +54,6 @@ class MyApplication : BaseApplication() {
fun
initApp
()
{
FacebookSdk
.
sdkInitialize
(
getApplicationContext
());
FacebookSdk
.
setIsDebugEnabled
(
true
);
FacebookSdk
.
addLoggingBehavior
(
LoggingBehavior
.
APP_EVENTS
);
initNotificationWork
()
InstallHelps
.
init
{
if
(
ConfigHelper
.
admobTrueMaxFlase
==
0
)
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/DeviceScanActivity.kt
View file @
1ddd2d2a
...
...
@@ -12,6 +12,9 @@ import com.test.easy.easycleanerjunk.adapter.DeviceScanAdapter
import
com.test.easy.easycleanerjunk.databinding.ActivityDeviceScanBinding
import
com.test.easy.easycleanerjunk.helps.BaseActivity
import
com.test.easy.easycleanerjunk.helps.ConfigHelper
import
com.test.easy.easycleanerjunk.helps.ads.AdmobUtils
import
com.test.easy.easycleanerjunk.helps.ads.MaxAdUtils
import
com.test.easy.easycleanerjunk.utils.SPUtils
import
kotlin.math.abs
...
...
@@ -67,6 +70,24 @@ class DeviceScanActivity : BaseActivity<ActivityDeviceScanBinding>() {
override
fun
initListener
()
{
super
.
initListener
()
binding
.
tvStart
.
setOnClickListener
{
val
isShowDeviceAd
=
SPUtils
.
getInstance
().
getInt
(
"isShowDeviceAd"
,
0
)
if
(
isShowDeviceAd
==
0
)
{
nextPage
()
}
else
{
if
(
ConfigHelper
.
admobTrueMaxFlase
==
0
)
{
MaxAdUtils
.
showInterstitialAd
(
this
)
{
nextPage
()
}
}
else
{
AdmobUtils
.
showInterstitialAd
(
this
)
{
nextPage
()
}
}
}
}
}
private
fun
nextPage
()
{
if
(!
ConfigHelper
.
ifGuestFirstClean
)
{
startActivity
(
Intent
(
this
,
CleanGuestActivity
::
class
.
java
))
}
else
{
...
...
@@ -74,7 +95,6 @@ class DeviceScanActivity : BaseActivity<ActivityDeviceScanBinding>() {
}
finish
()
}
}
private
fun
RecyclerView
.
smoothScrollEquallyTo
(
pos
:
Int
,
speedFactor
:
Int
=
50
)
{
val
scroller
=
object
:
LinearSmoothScroller
(
context
)
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/appmanager/AppManagerAnimationActivity.kt
View file @
1ddd2d2a
...
...
@@ -25,6 +25,10 @@ class AppManagerAnimationActivity : BaseActivity<ActivityAppManagerAnimationBind
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
if
(
ConfigHelper
.
isInterAdShow
){
finish
()
return
}
playLottie
()
}
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/largefile/LargeFileAnimationActivity.kt
View file @
1ddd2d2a
...
...
@@ -25,6 +25,10 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
if
(
ConfigHelper
.
isInterAdShow
){
finish
()
return
}
playLottie
()
}
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/scanjunk/PrepareScanActivity.kt
View file @
1ddd2d2a
...
...
@@ -30,6 +30,10 @@ class PrepareScanActivity : BaseActivity<ActivityLayoutParepreScanBinding>() {
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
if
(
ConfigHelper
.
isInterAdShow
){
finish
()
return
}
BarUtils
.
setStatusBarLightMode
(
this
,
true
)
BarUtils
.
setStatusBarColor
(
this
,
Color
.
TRANSPARENT
)
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
View file @
1ddd2d2a
...
...
@@ -23,6 +23,10 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
if
(
ConfigHelper
.
isInterAdShow
){
finish
()
return
}
resumeLottie
()
}
...
...
app/src/main/java/com/test/easy/easycleanerjunk/bean/ConfigBean.kt
View file @
1ddd2d2a
...
...
@@ -27,4 +27,6 @@ class ConfigBean() {
var
adRequestCount
:
Int
=
100
var
adRequestFailCount
:
Int
=
20
var
facebookAdShowEventCount
:
Int
=
3
var
ifGuestFirstClean
:
Int
=
1
var
isShowDeviceAd
:
Int
=
0
}
app/src/main/java/com/test/easy/easycleanerjunk/helps/ComUtils.kt
View file @
1ddd2d2a
...
...
@@ -70,6 +70,12 @@ object ComUtils {
SPUtils
.
getInstance
().
put
(
"dayoutcomeHomePage"
,
bean
.
dayoutcomeHomePage
)
SPUtils
.
getInstance
().
put
(
"maxShowNotificationCount"
,
bean
.
maxShowNotificationCount
)
SPUtils
.
getInstance
().
put
(
"facebookAdShowEventCount"
,
bean
.
facebookAdShowEventCount
)
SPUtils
.
getInstance
().
put
(
"isShowDeviceAd"
,
bean
.
isShowDeviceAd
)
if
(
bean
.
ifGuestFirstClean
==
1
){
SPUtils
.
getInstance
().
put
(
"ifGuestFirstClean"
,
false
)
}
else
{
SPUtils
.
getInstance
().
put
(
"ifGuestFirstClean"
,
true
)
}
ConfigHelper
.
admobTrueMaxFlase
=
bean
.
admobTrueMaxFlase
adDisplayInterval
=
bean
.
adInterval
maxMultiClick
=
bean
.
maxMultiClick
...
...
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