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
8ce638fa
Commit
8ce638fa
authored
Jul 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
f97231ab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
+19
-7
AppProcessAnimationActivity.kt
...clebin/activity/appprocess/AppProcessAnimationActivity.kt
+1
-1
PhotoManagerAnimationActivity.kt
...in/activity/photomanager/PhotoManagerAnimationActivity.kt
+2
-1
ScreenShotAnimationActivity.kt
...clebin/activity/screenshot/ScreenShotAnimationActivity.kt
+7
-2
WhatsAppCleanerAnimationActivity.kt
...bin/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
+9
-3
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/activity/appprocess/AppProcessAnimationActivity.kt
View file @
8ce638fa
...
@@ -58,7 +58,7 @@ class AppProcessAnimationActivity : BaseActivity<ActivityAppProcessAnimationBind
...
@@ -58,7 +58,7 @@ class AppProcessAnimationActivity : BaseActivity<ActivityAppProcessAnimationBind
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
if
(
job
?.
isActive
==
false
||
job
==
null
)
{
job
=
jumpJob
()
job
=
jumpJob
()
}
}
}
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/photomanager/PhotoManagerAnimationActivity.kt
View file @
8ce638fa
...
@@ -47,7 +47,7 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
...
@@ -47,7 +47,7 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
if
(
job
?.
isActive
==
false
)
{
if
(
job
?.
isActive
==
false
||
job
==
null
)
{
job
=
jumpJob
()
job
=
jumpJob
()
}
}
}
}
...
@@ -55,6 +55,7 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
...
@@ -55,6 +55,7 @@ class PhotoManagerAnimationActivity : BaseActivity<ActivityScreenShotAnimationBi
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
job
?.
cancel
()
job
?.
cancel
()
job
=
null
}
}
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/activity/screenshot/ScreenShotAnimationActivity.kt
View file @
8ce638fa
...
@@ -7,6 +7,7 @@ import androidx.lifecycle.lifecycleScope
...
@@ -7,6 +7,7 @@ import androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.databinding.ActivityScreenShotAnimationBinding
import
com.base.filerecoveryrecyclebin.databinding.ActivityScreenShotAnimationBinding
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.utils.LogEx
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
...
@@ -14,6 +15,8 @@ import kotlin.random.Random
...
@@ -14,6 +15,8 @@ import kotlin.random.Random
class
ScreenShotAnimationActivity
:
BaseActivity
<
ActivityScreenShotAnimationBinding
>()
{
class
ScreenShotAnimationActivity
:
BaseActivity
<
ActivityScreenShotAnimationBinding
>()
{
private
val
TAG
=
"ScreenShotAnimationActivity"
override
val
binding
:
ActivityScreenShotAnimationBinding
by
lazy
{
override
val
binding
:
ActivityScreenShotAnimationBinding
by
lazy
{
ActivityScreenShotAnimationBinding
.
inflate
(
layoutInflater
)
ActivityScreenShotAnimationBinding
.
inflate
(
layoutInflater
)
}
}
...
@@ -23,7 +26,7 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
...
@@ -23,7 +26,7 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
}
}
fun
jumpJob
()
=
lifecycleScope
.
launch
{
private
fun
jumpJob
()
=
lifecycleScope
.
launch
{
delay
(
Random
.
nextLong
(
3000
,
4500
))
delay
(
Random
.
nextLong
(
3000
,
4500
))
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@ScreenShotAnimationActivity
)
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@ScreenShotAnimationActivity
)
{
startActivity
(
Intent
(
this
@ScreenShotAnimationActivity
,
ScreenShotActivity
::
class
.
java
))
startActivity
(
Intent
(
this
@ScreenShotAnimationActivity
,
ScreenShotActivity
::
class
.
java
))
...
@@ -40,13 +43,15 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
...
@@ -40,13 +43,15 @@ class ScreenShotAnimationActivity : BaseActivity<ActivityScreenShotAnimationBind
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
LogEx
.
logDebug
(
TAG
,
"onResume"
)
if
(
job
?.
isActive
==
false
||
job
==
null
)
{
job
=
jumpJob
()
job
=
jumpJob
()
}
}
}
}
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
LogEx
.
logDebug
(
TAG
,
"onPause"
)
job
?.
cancel
()
job
?.
cancel
()
job
=
null
job
=
null
}
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/whatsapp/WhatsAppCleanerAnimationActivity.kt
View file @
8ce638fa
...
@@ -9,6 +9,8 @@ import androidx.lifecycle.lifecycleScope
...
@@ -9,6 +9,8 @@ import androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.databinding.ActivityWhatsAppCleanerAnimationBinding
import
com.base.filerecoveryrecyclebin.databinding.ActivityWhatsAppCleanerAnimationBinding
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.utils.LogEx
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
...
@@ -16,6 +18,7 @@ import kotlin.random.Random
...
@@ -16,6 +18,7 @@ import kotlin.random.Random
class
WhatsAppCleanerAnimationActivity
:
BaseActivity
<
ActivityWhatsAppCleanerAnimationBinding
>()
{
class
WhatsAppCleanerAnimationActivity
:
BaseActivity
<
ActivityWhatsAppCleanerAnimationBinding
>()
{
private
val
TAG
=
"WhatsAppCleanerAnimationActivity"
override
val
binding
:
ActivityWhatsAppCleanerAnimationBinding
by
lazy
{
override
val
binding
:
ActivityWhatsAppCleanerAnimationBinding
by
lazy
{
ActivityWhatsAppCleanerAnimationBinding
.
inflate
(
layoutInflater
)
ActivityWhatsAppCleanerAnimationBinding
.
inflate
(
layoutInflater
)
...
@@ -40,8 +43,9 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
...
@@ -40,8 +43,9 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
}
}
@SuppressLint
(
"SetTextI18n"
)
@SuppressLint
(
"SetTextI18n"
)
fun
jumpJob
()
=
lifecycleScope
.
launch
{
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
3500
,
4500
))
delay
(
5000
)
LogEx
.
logDebug
(
TAG
,
"delay over"
)
binding
.
lottie
.
cancelAnimation
()
binding
.
lottie
.
cancelAnimation
()
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
...
@@ -56,13 +60,15 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
...
@@ -56,13 +60,15 @@ class WhatsAppCleanerAnimationActivity : BaseActivity<ActivityWhatsAppCleanerAni
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
if
(
job
?.
isActive
==
false
&&
job
==
null
)
{
LogEx
.
logDebug
(
TAG
,
"onResume"
)
if
(
job
?.
isActive
==
false
||
job
==
null
)
{
job
=
jumpJob
()
job
=
jumpJob
()
}
}
}
}
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
LogEx
.
logDebug
(
TAG
,
"onPause"
)
job
?.
cancel
()
job
?.
cancel
()
job
=
null
job
=
null
}
}
...
...
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