Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
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
Data Recovery White
Commits
f8e9eca7
Commit
f8e9eca7
authored
Jul 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
07bb4cdc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
SplashActivity.kt
...ain/java/com/base/datarecovery/activity/SplashActivity.kt
+7
-7
ScanJunkActivity.kt
.../base/datarecovery/activity/junkclean/ScanJunkActivity.kt
+2
-0
HomeFragment.kt
.../main/java/com/base/datarecovery/fragment/HomeFragment.kt
+2
-2
LogEx.kt
app/src/main/java/com/base/datarecovery/utils/LogEx.kt
+2
-2
No files found.
app/src/main/java/com/base/datarecovery/activity/SplashActivity.kt
View file @
f8e9eca7
...
...
@@ -130,8 +130,13 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
}
}
var
jumped
:
Boolean
=
false
private
fun
jumpNext
()
{
LogEx
.
logDebug
(
TAG
,
" when (actionId) {:jumpNext: "
+
actionId
)
if
(
jumped
)
{
return
}
jumped
=
true
LogEx
.
logDebug
(
TAG
,
"jumpNext actionId=$actionId"
)
when
(
actionId
)
{
ID_JUNK_CLEAN_PUSH
->
{
...
...
@@ -220,18 +225,12 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
val
value
=
binding
.
pb
.
progress
+
2
binding
.
pb
.
setProgress
(
value
,
true
)
progress
.
emit
(
value
)
LogEx
.
logDebug
(
TAG
,
"startProgress:"
+
isActive
+
" progress.emit(value)"
)
val
delayTime
=
450L
delay
(
delayTime
)
LogEx
.
logDebug
(
TAG
,
"startProgress:"
+
isActive
+
" delay(delayTime)"
)
processTime
+=
delayTime
LogEx
.
logDebug
(
TAG
,
"startProgress:"
+
isActive
+
" processTime += delayTime"
)
if
(
processTime
>=
Random
.
nextLong
(
3000
,
4000
))
{
LogEx
.
logDebug
(
TAG
,
"startProgress:"
+
isActive
+
" Random.nextLong(3000, 4000)"
)
if
(!
outTimeAdStart
)
{
outTimeAdStart
=
true
LogEx
.
logDebug
(
TAG
,
"outTimeAd:"
+
isActive
)
outTimeAd
()
}
}
...
...
@@ -244,6 +243,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
AdmobMaxHelper
.
admobMaxShowOpenAd
(
this
,
showBeforeAction
=
{
job
?.
cancel
()
})
{
LogEx
.
logDebug
(
TAG
,
"onHide"
)
binding
.
pb
.
progress
=
100
jumpNext
()
}
...
...
app/src/main/java/com/base/datarecovery/activity/junkclean/ScanJunkActivity.kt
View file @
f8e9eca7
...
...
@@ -16,6 +16,7 @@ import com.base.datarecovery.help.BaseActivity
import
com.base.datarecovery.help.PermissionHelp.checkStorePermission
import
com.base.datarecovery.help.PermissionHelp.requestStorePermission
import
com.base.datarecovery.utils.BarUtils
import
com.base.datarecovery.utils.LogEx
import
com.base.datarecovery.view.DialogViews.showGerPermission
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
...
...
@@ -34,6 +35,7 @@ class ScanJunkActivity : BaseActivity<ActivityLayoutScanJunkBinding>() {
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
LogEx
.
logDebug
(
TAG
,
"ScanJunkActivity initView"
)
BarUtils
.
setStatusBarColor
(
this
,
Color
.
TRANSPARENT
)
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
...
...
app/src/main/java/com/base/datarecovery/fragment/HomeFragment.kt
View file @
f8e9eca7
...
...
@@ -41,8 +41,8 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
override
fun
setListener
()
{
binding
.
flScan
.
setOnClickListener
{
startActivity
(
Intent
(
requireContext
(),
ScanJunkActivity
::
class
.
java
))
//
sendNotification(requireContext(), ConstObject.ID_JUNK_CLEAN_PUSH)
//
startActivity(Intent(requireContext(), ScanJunkActivity::class.java))
sendNotification
(
requireContext
(),
ConstObject
.
ID_JUNK_CLEAN_PUSH
)
}
binding
.
flRyPhoto
.
setOnClickListener
{
startActivity
(
Intent
(
requireContext
(),
FileScanResultActivity
::
class
.
java
).
apply
{
...
...
app/src/main/java/com/base/datarecovery/utils/LogEx.kt
View file @
f8e9eca7
...
...
@@ -9,11 +9,11 @@ object LogEx {
"FileScanActivity"
,
"FileHexEx"
,
"FileGridAdapter"
,
"
com.base.datarecovery.utils.
EventUtils"
,
"EventUtils"
,
"ReportUtils"
)
fun
logDebug
(
tag
:
String
,
content
:
String
,
isMust
:
Boolean
=
fals
e
)
{
fun
logDebug
(
tag
:
String
,
content
:
String
,
isMust
:
Boolean
=
tru
e
)
{
if
(
isMust
)
{
Log
.
e
(
tag
,
content
)
}
else
{
...
...
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