Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
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
appzxhy
Commits
033b8e0a
Commit
033b8e0a
authored
Jul 10, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[迭代]电池引导和清理扫描结束广告
parent
e8608b65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
AdConfigBean.kt
...in/java/com/simplecleaner/app/bean/config/AdConfigBean.kt
+1
-1
JunkCleanActivity.kt
.../java/com/simplecleaner/app/ui/clean/JunkCleanActivity.kt
+10
-1
activity_junk_clean_2.xml
app/src/main/res/layout/activity_junk_clean_2.xml
+16
-1
No files found.
app/src/main/java/com/simplecleaner/app/bean/config/AdConfigBean.kt
View file @
033b8e0a
package
com.simplecleaner.app.bean.config
package
com.simplecleaner.app.bean.config
class
AdConfigBean
(
data
class
AdConfigBean
(
var
isAdShow
:
Boolean
=
true
,
//广告开关
var
isAdShow
:
Boolean
=
true
,
//广告开关
...
...
app/src/main/java/com/simplecleaner/app/ui/clean/JunkCleanActivity.kt
View file @
033b8e0a
...
@@ -23,6 +23,8 @@ import com.simplecleaner.app.bean.FeatureBean.Companion.JUNK_CLEAN
...
@@ -23,6 +23,8 @@ import com.simplecleaner.app.bean.FeatureBean.Companion.JUNK_CLEAN
import
com.simplecleaner.app.bean.FeatureBean.Companion.setFunctionTodayUsed
import
com.simplecleaner.app.bean.FeatureBean.Companion.setFunctionTodayUsed
import
com.simplecleaner.app.bean.FileBean
import
com.simplecleaner.app.bean.FileBean
import
com.simplecleaner.app.bean.config.AdConfigBean
import
com.simplecleaner.app.bean.config.AdConfigBean
import
com.simplecleaner.app.business.ads.AdsMgr
import
com.simplecleaner.app.business.ads.AdsShowCallBack
import
com.simplecleaner.app.databinding.ActivityJunkClean2Binding
import
com.simplecleaner.app.databinding.ActivityJunkClean2Binding
import
com.simplecleaner.app.databinding.ItemJunkCleanChildBinding
import
com.simplecleaner.app.databinding.ItemJunkCleanChildBinding
import
com.simplecleaner.app.databinding.ItemJunkCleanGroupBinding
import
com.simplecleaner.app.databinding.ItemJunkCleanGroupBinding
...
@@ -229,7 +231,7 @@ class JunkCleanActivity : BaseActivity<ActivityJunkClean2Binding>(ActivityJunkCl
...
@@ -229,7 +231,7 @@ class JunkCleanActivity : BaseActivity<ActivityJunkClean2Binding>(ActivityJunkCl
}
}
})
})
if
(
AdConfigBean
.
adsConfigBean
.
isAdShow
){
if
(
AdConfigBean
.
adsConfigBean
.
isAdShow
)
{
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
while
(
isActive
)
{
while
(
isActive
)
{
delay
(
3000
)
delay
(
3000
)
...
@@ -358,6 +360,13 @@ class JunkCleanActivity : BaseActivity<ActivityJunkClean2Binding>(ActivityJunkCl
...
@@ -358,6 +360,13 @@ class JunkCleanActivity : BaseActivity<ActivityJunkClean2Binding>(ActivityJunkCl
updateSelection
()
updateSelection
()
page1
.
tvPath
?.
setText
(
R
.
string
.
scan_completed
)
page1
.
tvPath
?.
setText
(
R
.
string
.
scan_completed
)
page1
.
tvSize
?.
text
=
getString
(
R
.
string
.
found_f
,
total
.
toFormatSize
())
page1
.
tvSize
?.
text
=
getString
(
R
.
string
.
found_f
,
total
.
toFormatSize
())
AdsMgr
.
showInsert
(
this
,
false
,
object
:
AdsShowCallBack
()
{
override
fun
next
()
{
if
(
total
>
0L
)
{
binding
.
idShouzhi
.
visibility
=
View
.
VISIBLE
}
}
})
}
}
private
fun
setSize
(
size
:
Long
)
{
private
fun
setSize
(
size
:
Long
)
{
...
...
app/src/main/res/layout/activity_junk_clean_2.xml
View file @
033b8e0a
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_4"
android:layout_marginTop=
"@dimen/dp_4"
android:visibility=
"invisible"
android:layout_marginBottom=
"@dimen/dp_38"
android:layout_marginBottom=
"@dimen/dp_38"
android:visibility=
"invisible"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -114,6 +114,21 @@
...
@@ -114,6 +114,21 @@
tools:ignore=
"TextContrastCheck"
tools:ignore=
"TextContrastCheck"
tools:layout_editor_absoluteX=
"30dp"
/>
tools:layout_editor_absoluteX=
"30dp"
/>
<com.airbnb.lottie.LottieAnimationView
android:id=
"@+id/id_shouzhi"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"@id/tv_clean"
app:layout_constraintEnd_toEndOf=
"@id/tv_clean"
app:layout_constraintTop_toTopOf=
"@id/tv_clean"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:lottie_rawRes=
"@raw/junk_shouzhi"
tools:ignore=
"ImageContrastCheck"
tools:visibility=
"visible"
/>
<include
<include
android:id=
"@+id/layout_animation"
android:id=
"@+id/layout_animation"
layout=
"@layout/layout_animation_2"
layout=
"@layout/layout_animation_2"
...
...
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