Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
scanqrwhitecopy
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
scanqrwhitecopy
Commits
484c7f0e
Commit
484c7f0e
authored
Jan 22, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
10b19d7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
HomeFragment.kt
app/src/main/java/com/base/scanqrclear/luma/HomeFragment.kt
+3
-1
strings.xml
app/src/main/res/values/strings.xml
+5
-4
No files found.
app/src/main/java/com/base/scanqrclear/luma/HomeFragment.kt
View file @
484c7f0e
...
@@ -152,7 +152,9 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
...
@@ -152,7 +152,9 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
private
fun
showDay
()
{
private
fun
showDay
()
{
val
installTime
=
SpUtils
.
getInstance
().
getLong
(
KEY_INSTALL_TIME
)
val
installTime
=
SpUtils
.
getInstance
().
getLong
(
KEY_INSTALL_TIME
)
val
result
=
calculateDaysBetween
(
installTime
,
System
.
currentTimeMillis
())
val
result
=
calculateDaysBetween
(
installTime
,
System
.
currentTimeMillis
())
binding
.
tvDay
.
text
=
"${result.toInt()} ${getString(R.string.days)}"
val
day
=
result
.
toInt
()
val
dayString
=
if
(
day
>
1
)
getString
(
R
.
string
.
days
)
else
getString
(
R
.
string
.
day
)
binding
.
tvDay
.
text
=
"$day $dayString"
}
}
fun
calculateDaysBetween
(
timestamp1
:
Long
,
timestamp2
:
Long
):
Long
{
fun
calculateDaysBetween
(
timestamp1
:
Long
,
timestamp2
:
Long
):
Long
{
...
...
app/src/main/res/values/strings.xml
View file @
484c7f0e
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
<string
name=
"exit_app_manager_content"
>
Exit App manager? Unused applications may occupy phone memory.
</string>
<string
name=
"exit_app_manager_content"
>
Exit App manager? Unused applications may occupy phone memory.
</string>
<string
name=
"exit_whatsapp_clean"
>
Exit WhatsApp Clean
</string>
<string
name=
"exit_whatsapp_clean"
>
Exit WhatsApp Clean
</string>
<string
name=
"exit_whatsapp_clean_content"
>
Exit WhatsApp Clean? Possible WhatsApp junk files may be using space.
</string>
<string
name=
"exit_whatsapp_clean_content"
>
Exit WhatsApp Clean? Possible WhatsApp junk files may be using space.
</string>
<string
name=
"exit_app_process_content1"
>
Exit App Process?
</string>
<string
name=
"exit_app_process_content1"
>
Exit App Process?
</string>
<string
name=
"exit_app_process_content2"
>
background processes are still running.
</string>
<string
name=
"exit_app_process_content2"
>
background processes are still running.
</string>
<string
name=
"exit_screenshot_cleaner"
>
Exit Screenshot Clean
</string>
<string
name=
"exit_screenshot_cleaner"
>
Exit Screenshot Clean
</string>
<string
name=
"exit_screenshot_cleaner_content"
>
Exit Screenshot Clean? Unremoved screenshots may be taking up space.
</string>
<string
name=
"exit_screenshot_cleaner_content"
>
Exit Screenshot Clean? Unremoved screenshots may be taking up space.
</string>
...
@@ -188,8 +188,8 @@
...
@@ -188,8 +188,8 @@
<string
name=
"notification_not_clean"
>
Not cleaned in
</string>
<string
name=
"notification_not_clean"
>
Not cleaned in
</string>
<string
name=
"notification_not_clean_days"
>
day(s)
</string>
<string
name=
"notification_not_clean_days"
>
day(s)
</string>
<string
name=
"result_clean_junk"
>
Clean up unnecessary junk files!
</string>
<string
name=
"result_clean_junk"
>
Clean up unnecessary junk files!
</string>
<string
name=
"result_app_processes"
>
Manage backend processes
</string>
<string
name=
"result_app_processes"
>
Manage backend processes
</string>
<string
name=
"result_screenshot_clean"
>
Check Screenshot Clean to release more space
</string>
<string
name=
"result_screenshot_clean"
>
Check Screenshot Clean to release more space
</string>
<string
name=
"result_similar_photos"
>
Clean up similar photos to free up space
</string>
<string
name=
"result_similar_photos"
>
Clean up similar photos to free up space
</string>
<string
name=
"result_app_manager"
>
Clear out apps you no longer need
</string>
<string
name=
"result_app_manager"
>
Clear out apps you no longer need
</string>
<string
name=
"result_whatsapp_clean"
>
Free up space by cleaning up WhatsApp junkfiles
</string>
<string
name=
"result_whatsapp_clean"
>
Free up space by cleaning up WhatsApp junkfiles
</string>
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
<string
name=
"wait_a_moment"
>
Wait a moment
</string>
<string
name=
"wait_a_moment"
>
Wait a moment
</string>
<string
name=
"best_quality_photo"
>
Best quality photo
</string>
<string
name=
"best_quality_photo"
>
Best quality photo
</string>
<string
name=
"most_space_saved"
>
Most space saved
</string>
<string
name=
"most_space_saved"
>
Most space saved
</string>
<string
name=
"confirm_content"
>
The original photos will be replaced by the compressed ones
</string>
<string
name=
"confirm_content"
>
The original photos will be replaced by the compressed ones
</string>
<string
name=
"process_ad"
>
This process may contain ads
</string>
<string
name=
"process_ad"
>
This process may contain ads
</string>
<string
name=
"app"
>
App
</string>
<string
name=
"app"
>
App
</string>
<string
name=
"larger_than"
>
Larger than
</string>
<string
name=
"larger_than"
>
Larger than
</string>
...
@@ -244,6 +244,7 @@
...
@@ -244,6 +244,7 @@
<string
name=
"occupies"
>
Occupies
</string>
<string
name=
"occupies"
>
Occupies
</string>
<string
name=
"have_been_with_you_for"
>
Have been with you for
</string>
<string
name=
"have_been_with_you_for"
>
Have been with you for
</string>
<string
name=
"days"
>
days
</string>
<string
name=
"days"
>
days
</string>
<string
name=
"day"
>
day
</string>
<string
name=
"the_best_we_can_get"
>
The best we can get
</string>
<string
name=
"the_best_we_can_get"
>
The best we can get
</string>
<string
name=
"whatsapp"
>
WhatsApp
</string>
<string
name=
"whatsapp"
>
WhatsApp
</string>
<string
name=
"view"
>
View
</string>
<string
name=
"view"
>
View
</string>
...
...
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