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
22043554
Commit
22043554
authored
Jul 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
cad4c425
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
HomeFragment.kt
.../com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
+25
-22
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
View file @
22043554
...
@@ -59,6 +59,7 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
...
@@ -59,6 +59,7 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
}
}
}
}
}
}
showStorage
()
}
}
override
fun
setListener
()
{
override
fun
setListener
()
{
...
@@ -113,6 +114,11 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
...
@@ -113,6 +114,11 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
super
.
onResume
()
super
.
onResume
()
binding
.
lottie
.
resumeAnimation
()
binding
.
lottie
.
resumeAnimation
()
if
(
requireContext
().
checkStorePermission
())
{
if
(
requireContext
().
checkStorePermission
())
{
}
}
@SuppressLint
(
"SetTextI18n"
)
fun
showStorage
()
{
binding
.
llStorage
.
visibility
=
View
.
VISIBLE
binding
.
llStorage
.
visibility
=
View
.
VISIBLE
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
R
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
R
)
{
...
@@ -135,9 +141,6 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
...
@@ -135,9 +141,6 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
val
usedSize
=
((
stat1
.
totalBytes
+
stat2
.
totalBytes
)
-
(
stat1
.
availableBytes
+
stat2
.
availableBytes
)).
toFormatSize
()
val
usedSize
=
((
stat1
.
totalBytes
+
stat2
.
totalBytes
)
-
(
stat1
.
availableBytes
+
stat2
.
availableBytes
)).
toFormatSize
()
binding
.
tvStorage
.
text
=
"$usedSize / $totalSize"
binding
.
tvStorage
.
text
=
"$usedSize / $totalSize"
}
}
}
}
}
}
}
\ 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