Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White ago
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
kuxulei
PDF Viewer Scanner White ago
Commits
9ae1e36b
Commit
9ae1e36b
authored
Oct 21, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
8a03c8ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
CleaningActivity.kt
...se/pdfviewerscannerwhite/ui/cleanjunk/CleaningActivity.kt
+10
-5
ResultActivity.kt
...om/base/pdfviewerscannerwhite/ui/result/ResultActivity.kt
+5
-0
activity_result.xml
app/src/main/res/layout/activity_result.xml
+2
-2
strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/cleanjunk/CleaningActivity.kt
View file @
9ae1e36b
...
...
@@ -10,6 +10,7 @@ import androidx.core.animation.doOnEnd
import
androidx.core.view.updatePadding
import
com.base.pdfviewerscannerwhite.ads.admob.AdmobInterstitialUtils
import
com.base.pdfviewerscannerwhite.bean.ConstObject.FUNCTION_APP_PROCESS
import
com.base.pdfviewerscannerwhite.bean.ConstObject.FUNCTION_SCAM_JUNK
import
com.base.pdfviewerscannerwhite.databinding.ActivityLayoutCleanupingBinding
import
com.base.pdfviewerscannerwhite.helper.BaseActivity
import
com.base.pdfviewerscannerwhite.ui.result.ResultActivity
...
...
@@ -85,16 +86,20 @@ class CleaningActivity : BaseActivity<ActivityLayoutCleanupingBinding>() {
if
(
isCleanEndAdSp
==
1
)
{
AdmobInterstitialUtils
.
showInterstitialAd
(
this
@CleaningActivity
)
{
startActivity
(
Intent
(
this
@CleaningActivity
,
ResultActivity
::
class
.
java
).
putExtra
(
"from"
,
FUNCTION_APP_PROCESS
)
.
putExtra
(
"clean_size"
,
intentSize
)
Intent
(
this
@CleaningActivity
,
ResultActivity
::
class
.
java
).
apply
{
putExtra
(
"from"
,
FUNCTION_SCAM_JUNK
)
putExtra
(
"clean_size"
,
intentSize
)
}
)
finish
()
}
}
else
{
startActivity
(
Intent
(
this
@CleaningActivity
,
ResultActivity
::
class
.
java
).
putExtra
(
"from"
,
""
).
putExtra
(
"from"
,
FUNCTION_APP_PROCESS
)
Intent
(
this
@CleaningActivity
,
ResultActivity
::
class
.
java
).
apply
{
putExtra
(
"from"
,
FUNCTION_SCAM_JUNK
)
putExtra
(
"clean_size"
,
intentSize
)
}
)
finish
()
}
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/result/ResultActivity.kt
View file @
9ae1e36b
...
...
@@ -13,6 +13,7 @@ import com.base.pdfviewerscannerwhite.helper.BaseActivity
import
com.base.pdfviewerscannerwhite.ui.appprocess.AppProcessLoadingActivity
import
com.base.pdfviewerscannerwhite.ui.cleanjunk.ScanJunkActivity
import
com.base.pdfviewerscannerwhite.utils.BarUtils
import
com.base.pdfviewerscannerwhite.utils.KotlinExt.toFormatSize
class
ResultActivity
:
BaseActivity
<
ActivityResultBinding
>()
{
...
...
@@ -52,6 +53,10 @@ class ResultActivity : BaseActivity<ActivityResultBinding>() {
startActivity
(
Intent
(
this
,
ScanJunkActivity
::
class
.
java
))
finish
()
}
val
s
=
intent
.
extras
?.
getString
(
"clean_size"
)
?.
toLong
()
?:
0
if
(
s
!=
0L
)
{
binding
.
tvSize
.
text
=
"Cleaned up ${s.toFormatSize(1)}"
}
}
}
...
...
app/src/main/res/layout/activity_result.xml
View file @
9ae1e36b
...
...
@@ -53,12 +53,12 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"13dp"
android:text=
"@string/completed"
android:textColor=
"@color/white"
android:textSize=
"16sp"
app:layout_constraintEnd_toEndOf=
"@id/iv"
app:layout_constraintStart_toStartOf=
"@id/iv"
app:layout_constraintTop_toBottomOf=
"@id/iv"
tools:text=
"Cleaned!108.7 KB"
/>
app:layout_constraintTop_toBottomOf=
"@id/iv"
/>
<androidx.cardview.widget.CardView
android:id=
"@+id/card"
...
...
app/src/main/res/values/strings.xml
View file @
9ae1e36b
...
...
@@ -122,5 +122,6 @@
<string
name=
"clean_up_your_phone_storage"
>
Clean up your phone storage
</string>
<string
name=
"scan_now"
>
Scan Now
</string>
<string
name=
"clean_now"
>
Clean Now
</string>
<string
name=
"completed"
>
Completed
</string>
</resources>
\ 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