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
14c9bf84
Commit
14c9bf84
authored
Jul 18, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
9818558a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
FileRecoveryActivity.kt
...se/datarecovery/activity/recovery/FileRecoveryActivity.kt
+5
-2
ConfigHelper.kt
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
+3
-3
No files found.
app/src/main/java/com/base/datarecovery/activity/recovery/FileRecoveryActivity.kt
View file @
14c9bf84
...
@@ -28,6 +28,7 @@ import com.base.datarecovery.utils.TimeUtils.isWithinSixMonths
...
@@ -28,6 +28,7 @@ import com.base.datarecovery.utils.TimeUtils.isWithinSixMonths
import
com.base.datarecovery.utils.TimeUtils.isWithinTwentyFourMonths
import
com.base.datarecovery.utils.TimeUtils.isWithinTwentyFourMonths
import
com.base.datarecovery.view.DialogViews.showRecoveringDialog
import
com.base.datarecovery.view.DialogViews.showRecoveringDialog
import
com.google.gson.Gson
import
com.google.gson.Gson
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
import
java.io.File
import
java.io.File
...
@@ -236,7 +237,7 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
...
@@ -236,7 +237,7 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
}
}
private
fun
initData
()
{
private
fun
initData
()
=
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
val
hash
=
HashMap
<
String
,
ArrayList
<
RecoveryBean
>>()
val
hash
=
HashMap
<
String
,
ArrayList
<
RecoveryBean
>>()
...
@@ -257,8 +258,10 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
...
@@ -257,8 +258,10 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
hash
.
forEach
{
(
key
,
value
)
->
hash
.
forEach
{
(
key
,
value
)
->
list
.
add
(
FolderBean
(
time
=
key
,
recoveryList
=
value
))
list
.
add
(
FolderBean
(
time
=
key
,
recoveryList
=
value
))
}
}
launch
(
Dispatchers
.
Main
)
{
adapter
.
setData
(
list
)
adapter
.
setData
(
list
)
}
}
}
private
fun
dateFilter
(
recoveryBean
:
RecoveryBean
):
Boolean
{
private
fun
dateFilter
(
recoveryBean
:
RecoveryBean
):
Boolean
{
val
index
=
dateFilterList
.
indexOfFirst
{
it
.
isSelect
}
val
index
=
dateFilterList
.
indexOfFirst
{
it
.
isSelect
}
...
...
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
View file @
14c9bf84
...
@@ -19,9 +19,9 @@ object ConfigHelper {
...
@@ -19,9 +19,9 @@ object ConfigHelper {
const
val
openAdmobId
=
"/6499/example/app-open"
const
val
openAdmobId
=
"/6499/example/app-open"
//max广告id
//max广告id
const
val
interAdMaxId
=
"
bda3ff6e90dcf1e6
"
const
val
interAdMaxId
=
"
aa
"
const
val
nativeAdMaxId
=
"
92b665b1d235b7b8
"
const
val
nativeAdMaxId
=
"
bb
"
const
val
openAdMaxId
=
"
a4e07d8b8295856d
"
const
val
openAdMaxId
=
"
cc
"
//一定展示大图广告
//一定展示大图广告
var
mustShowNativeAd
:
Boolean
=
false
var
mustShowNativeAd
:
Boolean
=
false
...
...
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