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
364d8bd1
Commit
364d8bd1
authored
Jul 01, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
f807e383
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
ToolsAdapter.kt
...ava/com/test/easy/easycleanerjunk/adapter/ToolsAdapter.kt
+2
-2
WhatsAppMediaAdapter.kt
...test/easy/easycleanerjunk/adapter/WhatsAppMediaAdapter.kt
+2
-1
ToolsFragment.kt
...a/com/test/easy/easycleanerjunk/fragment/ToolsFragment.kt
+6
-0
t_battery.png
app/src/main/res/mipmap-xxhdpi/t_battery.png
+0
-0
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/adapter/ToolsAdapter.kt
View file @
364d8bd1
...
...
@@ -33,12 +33,12 @@ class ToolsAdapter(
ToolUI
(
PHOTO_COMPRESS
,
context
.
getString
(
R
.
string
.
photo_compress
),
R
.
mipmap
.
t_photo
),
ToolUI
(
SIMILAR_PHOTOS
,
context
.
getString
(
R
.
string
.
similar_photos
),
R
.
mipmap
.
t_similar
),
ToolUI
(
SCREENSHOT_CLEANER
,
context
.
getString
(
R
.
string
.
screenshot_cleaner
),
R
.
mipmap
.
screenshot
),
// ToolUI(BATTERY_INFO, context.getString(R.string.battery_info), R.mipmap.t_
),
ToolUI
(
BATTERY_INFO
,
context
.
getString
(
R
.
string
.
battery_info
),
R
.
mipmap
.
t_battery
),
ToolUI
(
WHATSAPP_CLEANER
,
context
.
getString
(
R
.
string
.
whatsapp_cleaner
),
R
.
mipmap
.
t_whatsapp
),
ToolUI
(
APP_MANAGER
,
context
.
getString
(
R
.
string
.
app_manager
),
R
.
mipmap
.
t_appmanager
),
)
),
ToolsUI
(
isAd
=
true
),
//
ToolsUI(isAd = true),
)
override
fun
getItemViewType
(
position
:
Int
):
Int
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/adapter/WhatsAppMediaAdapter.kt
View file @
364d8bd1
...
...
@@ -11,7 +11,7 @@ import com.test.easy.easycleanerjunk.databinding.ItemMediaSelectBinding
import
com.test.easy.easycleanerjunk.view.XmlEx.inflate
class
WhatsAppMediaAdapter
(
private
val
is
File
:
Boolean
=
false
,
private
val
is
List
:
Boolean
=
false
,
private
val
click
:
(
allSelect
:
Boolean
)
->
Unit
)
:
RecyclerView
.
Adapter
<
WhatsAppMediaAdapter
.
WhatMedia
>()
{
...
...
@@ -19,6 +19,7 @@ class WhatsAppMediaAdapter(
class
WhatMedia
(
view
:
View
)
:
RecyclerView
.
ViewHolder
(
view
)
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
WhatMedia
{
return
WhatMedia
(
R
.
layout
.
item_media_select
.
inflate
(
parent
))
}
...
...
app/src/main/java/com/test/easy/easycleanerjunk/fragment/ToolsFragment.kt
View file @
364d8bd1
package
com.test.easy.easycleanerjunk.fragment
import
android.content.Intent
import
com.test.easy.easycleanerjunk.activity.AppManagerActivity
import
com.test.easy.easycleanerjunk.activity.BatteryInfoActivity
import
com.test.easy.easycleanerjunk.activity.LargeFileCleanActivity
import
com.test.easy.easycleanerjunk.activity.RepeatPhotoActivity
...
...
@@ -12,6 +13,7 @@ import com.test.easy.easycleanerjunk.adapter.ToolsAdapter
import
com.test.easy.easycleanerjunk.databinding.FragmentLayoutTools1Binding
import
com.test.easy.easycleanerjunk.helps.BaseFragment
import
com.test.easy.easycleanerjunk.view.AFunOb
import
com.test.easy.easycleanerjunk.view.AFunOb.APP_MANAGER
import
com.test.easy.easycleanerjunk.view.AFunOb.BATTERY_INFO
import
com.test.easy.easycleanerjunk.view.AFunOb.LARGE_FILE_CLEANER
import
com.test.easy.easycleanerjunk.view.AFunOb.PHOTO_COMPRESS
...
...
@@ -56,6 +58,10 @@ class ToolsFragment : BaseFragment<FragmentLayoutTools1Binding>() {
WHATSAPP_CLEANER
->
{
startActivity
(
Intent
(
requireActivity
(),
WhatsAppCleanerActivity
::
class
.
java
))
}
APP_MANAGER
->
{
startActivity
(
Intent
(
requireActivity
(),
AppManagerActivity
::
class
.
java
))
}
}
}
binding
.
rvTools
.
adapter
=
adapter
...
...
app/src/main/res/mipmap-xxhdpi/t_battery.png
0 → 100644
View file @
364d8bd1
914 Bytes
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