Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
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
File Recovery RecycleBin
Commits
445887b0
Commit
445887b0
authored
Aug 02, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
303cb9fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
RepeatActivity.kt
.../filerecoveryrecyclebin/activity/repeat/RepeatActivity.kt
+5
-0
MediaAdapter.kt
...a/com/base/filerecoveryrecyclebin/adapter/MediaAdapter.kt
+4
-1
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/activity/repeat/RepeatActivity.kt
View file @
445887b0
...
@@ -126,6 +126,11 @@ class RepeatActivity : BaseActivity<ActivityRepeatBinding>() {
...
@@ -126,6 +126,11 @@ class RepeatActivity : BaseActivity<ActivityRepeatBinding>() {
}
}
launch
(
Dispatchers
.
Main
)
{
launch
(
Dispatchers
.
Main
)
{
mediaAdapter
.
removeData
(
cleanList
)
mediaAdapter
.
removeData
(
cleanList
)
if
(
mediaAdapter
.
isEmptyData
())
{
binding
.
llEmpty
.
isVisible
=
true
binding
.
tvSize
.
text
=
"0.0"
binding
.
tvUnit
.
text
=
"B"
}
}
}
}
}
}
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/adapter/MediaAdapter.kt
View file @
445887b0
...
@@ -106,7 +106,10 @@ class MediaAdapter(private val clickAction: (Pair<Boolean, List<MediaBean>>) ->
...
@@ -106,7 +106,10 @@ class MediaAdapter(private val clickAction: (Pair<Boolean, List<MediaBean>>) ->
}
}
beanList
.
removeIf
{
it
.
beans
.
size
<=
1
}
beanList
.
removeIf
{
it
.
beans
.
size
<=
1
}
notifyDataSetChanged
()
notifyDataSetChanged
()
clickAction
.
invoke
(
getSelectData
())
}
fun
isEmptyData
():
Boolean
{
return
beanList
.
isEmpty
()
}
}
}
}
\ 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