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
99d9b468
Commit
99d9b468
authored
Jul 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
a160dbed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
8 deletions
+66
-8
LargeFileAnimationActivity.kt
...cyclebin/activity/largefile/LargeFileAnimationActivity.kt
+7
-6
MediaStoreHelp.kt
...va/com/base/filerecoveryrecyclebin/help/MediaStoreHelp.kt
+2
-2
activity_large_file_animation.xml
app/src/main/res/layout/activity_large_file_animation.xml
+56
-0
new_lottie_large_file.json
app/src/main/res/raw/new_lottie_large_file.json
+1
-0
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/activity/largefile/LargeFileAnimationActivity.kt
View file @
99d9b468
package
com.base.
datarecovery
.activity.largefile
package
com.base.
filerecoveryrecyclebin
.activity.largefile
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.content.Intent
import
android.content.Intent
...
@@ -6,9 +6,9 @@ import android.view.View
...
@@ -6,9 +6,9 @@ import android.view.View
import
android.widget.Toast
import
android.widget.Toast
import
androidx.activity.addCallback
import
androidx.activity.addCallback
import
androidx.lifecycle.lifecycleScope
import
androidx.lifecycle.lifecycleScope
import
com.base.
datarecovery
.ads.AdmobMaxHelper
import
com.base.
filerecoveryrecyclebin
.ads.AdmobMaxHelper
import
com.base.
datarecovery
.databinding.ActivityLargeFileAnimationBinding
import
com.base.
filerecoveryrecyclebin
.databinding.ActivityLargeFileAnimationBinding
import
com.base.
datarecovery
.help.BaseActivity
import
com.base.
filerecoveryrecyclebin
.help.BaseActivity
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.delay
...
@@ -32,7 +32,8 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
...
@@ -32,7 +32,8 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
}
}
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
@SuppressLint
(
"SetTextI18n"
)
private
fun
jumpJob
()
=
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
5000
)
delay
(
5000
)
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottie
.
clearAnimation
()
binding
.
lottie
.
clearAnimation
()
...
@@ -49,7 +50,7 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
...
@@ -49,7 +50,7 @@ class LargeFileAnimationActivity : BaseActivity<ActivityLargeFileAnimationBindin
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/help/MediaStoreHelp.kt
View file @
99d9b468
...
@@ -86,7 +86,7 @@ object MediaStoreHelp {
...
@@ -86,7 +86,7 @@ object MediaStoreHelp {
val
time
=
cursor
.
getLong
(
cursor
.
getColumnIndex
(
MediaStore
.
Images
.
Media
.
DATE_MODIFIED
))
val
time
=
cursor
.
getLong
(
cursor
.
getColumnIndex
(
MediaStore
.
Images
.
Media
.
DATE_MODIFIED
))
val
mimeType
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
MediaStore
.
Images
.
Media
.
MIME_TYPE
))
val
mimeType
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
MediaStore
.
Images
.
Media
.
MIME_TYPE
))
list
.
add
(
MediaBean
(
path
,
uri
,
time
,
mimeType
))
list
.
add
(
MediaBean
(
path
=
path
,
uri
=
uri
,
time
=
time
,
mimeType
=
mimeType
))
}
}
}
}
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
...
@@ -137,7 +137,7 @@ object MediaStoreHelp {
...
@@ -137,7 +137,7 @@ object MediaStoreHelp {
val
time
=
cursor
.
getLong
(
cursor
.
getColumnIndex
(
MediaStore
.
Video
.
Media
.
DATE_MODIFIED
))
val
time
=
cursor
.
getLong
(
cursor
.
getColumnIndex
(
MediaStore
.
Video
.
Media
.
DATE_MODIFIED
))
val
mimeType
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
MediaStore
.
Video
.
Media
.
MIME_TYPE
))
val
mimeType
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
MediaStore
.
Video
.
Media
.
MIME_TYPE
))
list
.
add
(
MediaBean
(
path
,
uri
,
time
,
mimeType
))
list
.
add
(
MediaBean
(
path
=
path
,
uri
=
uri
,
time
=
time
,
mimeType
=
mimeType
))
}
}
}
}
...
...
app/src/main/res/layout/activity_large_file_animation.xml
0 → 100644
View file @
99d9b468
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
tools:context=
".activity.largefile.LargeFileAnimationActivity"
>
<com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView
android:id=
"@+id/lottie"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_marginHorizontal=
"80dp"
android:adjustViewBounds=
"true"
app:layout_constraintBottom_toTopOf=
"@+id/tv"
app:layout_constraintDimensionRatio=
"1:1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.7"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:lottie_rawRes=
"@raw/new_lottie_large_file"
/>
<com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView
android:id=
"@+id/lottie_completed"
android:layout_width=
"90dp"
android:layout_height=
"90dp"
android:layout_gravity=
"center"
android:visibility=
"gone"
app:layout_constraintBottom_toTopOf=
"@id/tv"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:lottie_autoPlay=
"false"
app:lottie_rawRes=
"@raw/loading_completed"
/>
<TextView
android:id=
"@+id/tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"250dp"
android:gravity=
"center"
android:text=
"Wait a moment..."
android:textColor=
"#333333"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
tools:ignore=
"HardcodedText"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/raw/new_lottie_large_file.json
0 → 100644
View file @
99d9b468
This diff is collapsed.
Click to expand it.
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