Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
Super Cleaner Max
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
Super Cleaner Max
Commits
2e295ca2
Commit
2e295ca2
authored
Jun 05, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
=====CleanJunkActivity返回======
parent
be788118
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
7 deletions
+11
-7
CleanJunkActivity.kt
...m/test/basd/supercleanermax/activity/CleanJunkActivity.kt
+4
-2
AppFunctionAdapter.kt
...m/test/basd/supercleanermax/adapter/AppFunctionAdapter.kt
+1
-1
BatteryFragment.kt
...com/test/basd/supercleanermax/fragment/BatteryFragment.kt
+1
-1
fragment_battery.xml
app/src/main/res/layout/fragment_battery.xml
+2
-1
item_result_fun.xml
app/src/main/res/layout/item_result_fun.xml
+3
-2
battery.png
app/src/main/res/mipmap-xxhdpi/battery.png
+0
-0
battery_home.png
app/src/main/res/mipmap-xxhdpi/battery_home.png
+0
-0
No files found.
app/src/main/java/com/test/basd/supercleanermax/activity/CleanJunkActivity.kt
View file @
2e295ca2
...
@@ -76,7 +76,9 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
...
@@ -76,7 +76,9 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
}
}
onBackPressedDispatcher
.
addCallback
(
object
:
OnBackPressedCallback
(
true
)
{
onBackPressedDispatcher
.
addCallback
(
object
:
OnBackPressedCallback
(
true
)
{
override
fun
handleOnBackPressed
()
{
override
fun
handleOnBackPressed
()
{
finishToMain
()
AdmobUtils
.
showInterstitialAd
(
this
@CleanJunkActivity
)
{
finishToMain
()
}
}
}
})
})
...
@@ -209,7 +211,7 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
...
@@ -209,7 +211,7 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
@SuppressLint
(
"NotifyDataSetChanged"
)
@SuppressLint
(
"NotifyDataSetChanged"
)
private
fun
addData
(
index
:
Int
)
{
private
fun
addData
(
index
:
Int
)
{
if
(
parentList
.
isNotEmpty
())
{
if
(
parentList
.
isNotEmpty
())
{
Log
.
e
(
"MXL"
,
"addData: "
+
index
)
Log
.
e
(
"MXL"
,
"addData: "
+
index
)
parentList
[
index
].
isfinish
=
true
parentList
[
index
].
isfinish
=
true
parentList
[
index
].
parentSize
=
sizes
[
index
]
parentList
[
index
].
parentSize
=
sizes
[
index
]
mAdapter
.
notifyDataSetChanged
()
mAdapter
.
notifyDataSetChanged
()
...
...
app/src/main/java/com/test/basd/supercleanermax/adapter/AppFunctionAdapter.kt
View file @
2e295ca2
...
@@ -28,7 +28,7 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
...
@@ -28,7 +28,7 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
Fun
(
JUNK_CLEANER
,
R
.
mipmap
.
cleanjunk_home
,
"Clean junk regularly to free up space"
,
"Clean Up"
),
Fun
(
JUNK_CLEANER
,
R
.
mipmap
.
cleanjunk_home
,
"Clean junk regularly to free up space"
,
"Clean Up"
),
Fun
(
PHOTO_COMPRESS
,
R
.
mipmap
.
photo_home
,
"Compress photos to save space"
,
"Compress"
),
Fun
(
PHOTO_COMPRESS
,
R
.
mipmap
.
photo_home
,
"Compress photos to save space"
,
"Compress"
),
Fun
(
LARGE_FILE_CLEANER
,
R
.
mipmap
.
large_home
,
"Clean large files to free up storage space"
,
"Clean Up"
),
Fun
(
LARGE_FILE_CLEANER
,
R
.
mipmap
.
large_home
,
"Clean large files to free up storage space"
,
"Clean Up"
),
Fun
(
BATTERY_INFO
,
R
.
mipmap
.
battery
,
"View battery usage and details"
,
"Check Now"
),
Fun
(
BATTERY_INFO
,
R
.
mipmap
.
battery
_home
,
"View battery usage and details"
,
"Check Now"
),
Fun
(
Fun
(
APP_MANAGER
,
APP_MANAGER
,
R
.
mipmap
.
appmanager
,
R
.
mipmap
.
appmanager
,
...
...
app/src/main/java/com/test/basd/supercleanermax/fragment/BatteryFragment.kt
View file @
2e295ca2
...
@@ -49,7 +49,7 @@ class BatteryFragment : BaseFragment<FragmentBatteryBinding>() {
...
@@ -49,7 +49,7 @@ class BatteryFragment : BaseFragment<FragmentBatteryBinding>() {
binding
.
tvGo
.
setOnClickListener
{
binding
.
tvGo
.
setOnClickListener
{
requireContext
().
startActivity
(
Intent
(
requireContext
(),
BatteryInfoActivity
::
class
.
java
))
requireContext
().
startActivity
(
Intent
(
requireContext
(),
BatteryInfoActivity
::
class
.
java
))
}
}
testChart
()
//
testChart()
}
}
private
inner
class
BatteryReceiver
:
BroadcastReceiver
()
{
private
inner
class
BatteryReceiver
:
BroadcastReceiver
()
{
...
...
app/src/main/res/layout/fragment_battery.xml
View file @
2e295ca2
...
@@ -94,7 +94,8 @@
...
@@ -94,7 +94,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
>
android:layout_height=
"150dp"
android:visibility=
"gone"
>
<com.github.mikephil.charting.charts.LineChart
<com.github.mikephil.charting.charts.LineChart
android:id=
"@+id/chart"
android:id=
"@+id/chart"
...
...
app/src/main/res/layout/item_result_fun.xml
View file @
2e295ca2
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
android:layout_height=
"42dp"
android:layout_height=
"42dp"
android:layout_marginStart=
"12dp"
android:layout_marginStart=
"12dp"
android:layout_marginEnd=
"9dp"
android:layout_marginEnd=
"9dp"
android:src=
"@mipmap/battery"
/>
android:src=
"@mipmap/battery
_home
"
/>
<androidx.appcompat.widget.LinearLayoutCompat
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
android:text=
"Battery information"
android:text=
"Battery information"
android:textColor=
"#ff000000"
android:textColor=
"#ff000000"
android:textSize=
"15sp"
android:textSize=
"15sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
tools:ignore=
"HardcodedText"
/>
<TextView
<TextView
android:id=
"@+id/tv_des"
android:id=
"@+id/tv_des"
...
...
app/src/main/res/mipmap-xxhdpi/battery.png
deleted
100644 → 0
View file @
be788118
4.7 KB
app/src/main/res/mipmap-xxhdpi/battery_home.png
0 → 100644
View file @
2e295ca2
1.03 KB
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