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
d9c769cf
Commit
d9c769cf
authored
Jul 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
d4e8ed74
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
168 additions
and
68 deletions
+168
-68
AppProcessAnimationActivity.kt
...covery/activity/appprocess/AppProcessAnimationActivity.kt
+29
-12
LargeFileAnimationActivity.kt
...recovery/activity/largefile/LargeFileAnimationActivity.kt
+25
-16
PhotoManagerAnimationActivity.kt
...ry/activity/photomanager/PhotoManagerAnimationActivity.kt
+28
-12
FileScanResultActivity.kt
.../datarecovery/activity/recovery/FileScanResultActivity.kt
+4
-1
RepeatAnimationActivity.kt
...e/datarecovery/activity/repeat/RepeatAnimationActivity.kt
+28
-9
ScreenShotAnimationActivity.kt
...covery/activity/screenshot/ScreenShotAnimationActivity.kt
+27
-6
WhatsAppCleanerAnimationActivity.kt
...ery/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
+27
-12
No files found.
app/src/main/java/com/base/datarecovery/activity/appprocess/AppProcessAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -10,6 +10,7 @@ import com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.databinding.ActivityAppManagerAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
...
...
@@ -19,6 +20,7 @@ class AppProcessAnimationActivity : BaseActivity<ActivityAppManagerAnimationBind
override
val
binding
:
ActivityAppManagerAnimationBinding
by
lazy
{
ActivityAppManagerAnimationBinding
.
inflate
(
layoutInflater
)
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
playLottie
()
...
...
@@ -35,20 +37,35 @@ class AppProcessAnimationActivity : BaseActivity<ActivityAppManagerAnimationBind
binding
.
lottie
.
imageAssetsFolder
=
"app_manager/images/"
binding
.
lottie
.
setAnimation
(
"app_manager/data.json"
)
binding
.
lottie
.
playAnimation
()
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
4000
,
6000
))
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@AppProcessAnimationActivity
)
{
startActivity
(
Intent
(
this
@AppProcessAnimationActivity
,
AppProcessActivity
::
class
.
java
))
finish
()
}
}
@SuppressLint
(
"SetTextI18n"
)
private
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
4000
,
6000
))
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@AppProcessAnimationActivity
)
{
startActivity
(
Intent
(
this
@AppProcessAnimationActivity
,
AppProcessActivity
::
class
.
java
))
finish
()
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
job
=
null
}
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/activity/largefile/LargeFileAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -10,6 +10,7 @@ import com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.databinding.ActivityLargeFileAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
...
...
@@ -19,9 +20,9 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
ActivityLargeFileAnimationBinding
.
inflate
(
layoutInflater
)
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
playLottie
()
}
override
fun
initListener
()
{
...
...
@@ -31,23 +32,31 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
}
@SuppressLint
(
"SetTextI18n"
)
private
fun
playLottie
(
showFinish
:
(()
->
Unit
)?
=
null
)
{
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
5000
)
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottie
.
clearAnimation
()
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@LargeFileAnimationActivity
)
{
startActivity
(
Intent
(
this
@LargeFileAnimationActivity
,
LargeFileActivity
::
class
.
java
))
finish
()
}
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
5000
)
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottie
.
clearAnimation
()
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@LargeFileAnimationActivity
)
{
showFinish
?.
invoke
()
startActivity
(
Intent
(
this
@LargeFileAnimationActivity
,
LargeFileActivity
::
class
.
java
))
finish
()
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
job
=
null
}
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/activity/photomanager/PhotoManagerAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -9,6 +9,7 @@ import com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.databinding.ActivityScreenShotAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
...
...
@@ -18,20 +19,23 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
override
val
binding
:
ActivityScreenShotAnimationBinding
by
lazy
{
ActivityScreenShotAnimationBinding
.
inflate
(
layoutInflater
)
}
;
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
4000
,
4500
))
binding
.
lottie
.
visibility
=
View
.
INVISIBLE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
delay
(
1500
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@PhotoManagerAnimationActivity
)
{
startActivity
(
Intent
(
this
@PhotoManagerAnimationActivity
,
PhotoManagerActivity
::
class
.
java
))
finish
()
}
}
}
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
4000
,
4500
))
binding
.
lottie
.
visibility
=
View
.
INVISIBLE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
delay
(
1500
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@PhotoManagerAnimationActivity
)
{
startActivity
(
Intent
(
this
@PhotoManagerAnimationActivity
,
PhotoManagerActivity
::
class
.
java
))
finish
()
}
}
override
fun
initListener
()
{
...
...
@@ -41,4 +45,16 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
}
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/activity/recovery/FileScanResultActivity.kt
View file @
d9c769cf
...
...
@@ -33,6 +33,7 @@ import kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.channels.BufferOverflow
import
kotlinx.coroutines.flow.MutableSharedFlow
import
kotlinx.coroutines.flow.SharedFlow
import
kotlinx.coroutines.isActive
import
kotlinx.coroutines.launch
import
java.io.File
...
...
@@ -161,7 +162,9 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
binding
.
ivWancheng
.
visibility
=
View
.
VISIBLE
binding
.
tvScanning
.
text
=
"Completed"
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@FileScanResultActivity
)
if
(
isActive
)
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@FileScanResultActivity
)
}
binding
.
flEmpty
.
isVisible
=
pathList
.
isEmpty
()
setAdapterData
(
null
)
dialogClass
.
finishScan
{
...
...
app/src/main/java/com/base/datarecovery/activity/repeat/RepeatAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -3,12 +3,13 @@ package com.base.datarecovery.activity.repeat
import
android.content.Intent
import
android.widget.Toast
import
androidx.activity.addCallback
import
androidx.lifecycle.lifecycleScope
import
com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.ads.admob.AdmobInterstitialUtils
import
com.base.datarecovery.ads.max.AdMaxInterstitialUtils
import
com.base.datarecovery.databinding.ActivityRepeatAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
com.base.datarecovery.help.ConfigHelper
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
class
RepeatAnimationActivity
:
BaseActivity
<
ActivityRepeatAnimationBinding
>()
{
...
...
@@ -17,14 +18,10 @@ class RepeatAnimationActivity : BaseActivity<ActivityRepeatAnimationBinding>() {
ActivityRepeatAnimationBinding
.
inflate
(
layoutInflater
)
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
binding
.
root
.
postDelayed
({
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
){
startActivity
(
Intent
(
this
,
RepeatActivity
::
class
.
java
))
finish
()
}
},
Random
.
nextLong
(
3000
,
4500
))
}
override
fun
initListener
()
{
...
...
@@ -33,4 +30,26 @@ class RepeatAnimationActivity : BaseActivity<ActivityRepeatAnimationBinding>() {
}
}
fun
jumpJob
()
=
lifecycleScope
.
launch
{
delay
(
Random
.
nextLong
(
3000
,
4500
))
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@RepeatAnimationActivity
)
{
startActivity
(
Intent
(
this
@RepeatAnimationActivity
,
RepeatActivity
::
class
.
java
))
finish
()
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
job
=
null
}
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/activity/screenshot/ScreenShotAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -3,11 +3,15 @@ package com.base.datarecovery.activity.screenshot
import
android.content.Intent
import
android.widget.Toast
import
androidx.activity.addCallback
import
androidx.lifecycle.lifecycleScope
import
com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.ads.admob.AdmobInterstitialUtils
import
com.base.datarecovery.databinding.ActivityScreenShotAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
com.base.datarecovery.utils.LogEx
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
class
ScreenShotAnimationActivity
:
BaseActivity
<
ActivityScreenShotAnimationBinding
>()
{
...
...
@@ -15,14 +19,18 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
override
val
binding
:
ActivityScreenShotAnimationBinding
by
lazy
{
ActivityScreenShotAnimationBinding
.
inflate
(
layoutInflater
)
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
binding
.
root
.
postDelayed
({
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
)
{
startActivity
(
Intent
(
this
,
ScreenShotActivity
::
class
.
java
))
finish
()
}
},
Random
.
nextLong
(
3000
,
4500
))
}
fun
jumpJob
()
=
lifecycleScope
.
launch
{
delay
(
Random
.
nextLong
(
3000
,
4500
))
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@ScreenShotAnimationActivity
)
{
startActivity
(
Intent
(
this
@ScreenShotAnimationActivity
,
ScreenShotActivity
::
class
.
java
))
finish
()
}
}
override
fun
initListener
()
{
...
...
@@ -32,4 +40,17 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
job
=
null
}
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
View file @
d9c769cf
...
...
@@ -9,6 +9,8 @@ import androidx.lifecycle.lifecycleScope
import
com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.databinding.ActivityWhatsAppCleanerAnimationBinding
import
com.base.datarecovery.help.BaseActivity
import
com.ironsource.j
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
...
...
@@ -20,6 +22,7 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
ActivityWhatsAppCleanerAnimationBinding
.
inflate
(
layoutInflater
)
}
private
var
job
:
Job
?
=
null
override
fun
initView
()
{
playLottie
()
}
...
...
@@ -35,21 +38,33 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
binding
.
lottie
.
imageAssetsFolder
=
"junk_scan/images/"
binding
.
lottie
.
setAnimation
(
"junk_scan/data.json"
)
binding
.
lottie
.
playAnimation
()
lifecycleScope
.
launch
{
delay
(
Random
.
nextLong
(
3500
,
4500
))
binding
.
lottie
.
cancelAnimation
()
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@WhatsAppCleanerAnimationActivity
){
startActivity
(
Intent
(
this
@WhatsAppCleanerAnimationActivity
,
WhatsAppCleanerActivity
::
class
.
java
))
finish
()
}
}
fun
jumpJob
()
=
lifecycleScope
.
launch
{
delay
(
Random
.
nextLong
(
3500
,
4500
))
binding
.
lottie
.
cancelAnimation
()
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@WhatsAppCleanerAnimationActivity
)
{
startActivity
(
Intent
(
this
@WhatsAppCleanerAnimationActivity
,
WhatsAppCleanerActivity
::
class
.
java
))
finish
()
}
}
override
fun
onResume
()
{
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
job
=
jumpJob
()
}
}
override
fun
onPause
()
{
super
.
onPause
()
job
?.
cancel
()
job
=
null
}
}
\ 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