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
fa93ed46
Commit
fa93ed46
authored
Jul 17, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
6f15b37f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
FileRecoveryActivity.kt
...se/datarecovery/activity/recovery/FileRecoveryActivity.kt
+6
-4
InstallHelps.kt
...src/main/java/com/base/datarecovery/utils/InstallHelps.kt
+10
-6
No files found.
app/src/main/java/com/base/datarecovery/activity/recovery/FileRecoveryActivity.kt
View file @
fa93ed46
...
@@ -75,12 +75,14 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
...
@@ -75,12 +75,14 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
SCAN_PHOTOS
->
{
SCAN_PHOTOS
->
{
var
size
=
0
var
size
=
0
folderBean
?.
recoveryList
?.
forEach
{
folderBean
?.
recoveryList
?.
forEach
{
runCatching
{
val
bitmap
=
BitmapFactory
.
decodeFile
(
it
.
path
)
val
bitmap
=
BitmapFactory
.
decodeFile
(
it
.
path
)
if
(
bitmap
.
height
<
256
||
bitmap
.
width
<
256
)
{
if
(
bitmap
.
height
<
256
||
bitmap
.
width
<
256
)
{
size
++
size
++
it
.
isThumbnails
=
true
it
.
isThumbnails
=
true
}
}
}
}
}
binding
.
tvThumbnails
.
text
=
"Hide thumbnails (${size})"
binding
.
tvThumbnails
.
text
=
"Hide thumbnails (${size})"
}
}
...
...
app/src/main/java/com/base/datarecovery/utils/InstallHelps.kt
View file @
fa93ed46
...
@@ -7,6 +7,9 @@ import com.base.datarecovery.fcm.ScreenStatusReceiver
...
@@ -7,6 +7,9 @@ import com.base.datarecovery.fcm.ScreenStatusReceiver
import
com.base.datarecovery.help.BaseApplication
import
com.base.datarecovery.help.BaseApplication
import
org.json.JSONObject
import
org.json.JSONObject
/**
* call before agree
*/
object
InstallHelps
{
object
InstallHelps
{
fun
init
()
{
fun
init
()
{
val
referrerClient
=
InstallReferrerClient
.
newBuilder
(
BaseApplication
.
context
).
build
()
val
referrerClient
=
InstallReferrerClient
.
newBuilder
(
BaseApplication
.
context
).
build
()
...
@@ -24,12 +27,12 @@ object InstallHelps {
...
@@ -24,12 +27,12 @@ object InstallHelps {
obj
.
put
(
"instantExperienceLaunched"
,
installInfo
.
toString
())
obj
.
put
(
"instantExperienceLaunched"
,
installInfo
.
toString
())
EventUtils
.
event
(
"install_referrer"
,
ext
=
obj
,
isSingleEvent
=
true
)
EventUtils
.
event
(
"install_referrer"
,
ext
=
obj
,
isSingleEvent
=
true
)
if
(
listOf
(
"gclid"
,
"facebook"
,
"instagram"
).
all
{
!
installInfo
.
contains
(
it
,
true
)
})
{
if
(
listOf
(
"gclid"
,
"facebook"
,
"instagram"
).
all
{
!
installInfo
.
contains
(
it
,
true
)
})
{
//自然用户
//自然用户
AppPreferences
.
getInstance
().
put
(
"install_source"
,
"origin"
)
AppPreferences
.
getInstance
().
put
(
"install_source"
,
"origin"
)
}
else
{
}
else
{
//渠道用户
//渠道用户
AppPreferences
.
getInstance
().
put
(
"install_source"
,
"channel"
)
AppPreferences
.
getInstance
().
put
(
"install_source"
,
"channel"
)
}
}
NewComUtils
.
requestCfg
{
NewComUtils
.
requestCfg
{
...
@@ -38,7 +41,8 @@ object InstallHelps {
...
@@ -38,7 +41,8 @@ object InstallHelps {
RecoveryTimerManager
.
getInstance
().
stopTaskTimer
()
RecoveryTimerManager
.
getInstance
().
stopTaskTimer
()
}
else
{
}
else
{
val
timerDelay
:
Int
=
AppPreferences
.
getInstance
().
getString
(
"timerDelay"
,
"1"
).
toIntOrNull
()
?:
1
val
timerDelay
:
Int
=
AppPreferences
.
getInstance
().
getString
(
"timerDelay"
,
"1"
).
toIntOrNull
()
?:
1
val
timerInterval
:
Int
=
AppPreferences
.
getInstance
().
getString
(
"timerInterval"
,
"7"
).
toIntOrNull
()
?:
7
val
timerInterval
:
Int
=
AppPreferences
.
getInstance
().
getString
(
"timerInterval"
,
"7"
).
toIntOrNull
()
?:
7
if
(!
RecoveryTimerManager
.
getInstance
().
isTaskTimerActive
)
{
if
(!
RecoveryTimerManager
.
getInstance
().
isTaskTimerActive
)
{
RecoveryTimerManager
.
getInstance
().
scheduleTask
(
RecoveryTimerManager
.
getInstance
().
scheduleTask
(
(
timerDelay
*
60
*
1000
).
toLong
(),
(
timerDelay
*
60
*
1000
).
toLong
(),
...
...
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