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
9dcda932
Commit
9dcda932
authored
Jul 18, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
db0fdd7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
SplashActivity.kt
...ain/java/com/base/datarecovery/activity/SplashActivity.kt
+2
-0
FileScanResultActivity.kt
.../datarecovery/activity/recovery/FileScanResultActivity.kt
+1
-1
AdMaxInit.kt
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
+4
-4
No files found.
app/src/main/java/com/base/datarecovery/activity/SplashActivity.kt
View file @
9dcda932
...
@@ -47,6 +47,7 @@ import com.base.datarecovery.utils.BarUtils
...
@@ -47,6 +47,7 @@ import com.base.datarecovery.utils.BarUtils
import
com.base.datarecovery.utils.LogEx
import
com.base.datarecovery.utils.LogEx
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.Job
import
kotlinx.coroutines.cancel
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.flow.MutableSharedFlow
import
kotlinx.coroutines.flow.MutableSharedFlow
import
kotlinx.coroutines.flow.SharedFlow
import
kotlinx.coroutines.flow.SharedFlow
...
@@ -129,6 +130,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
...
@@ -129,6 +130,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
if
(
it
>=
100
)
{
if
(
it
>=
100
)
{
job
?.
cancel
()
job
?.
cancel
()
jumpNext
()
jumpNext
()
this
.
cancel
()
}
}
}
}
}
}
...
...
app/src/main/java/com/base/datarecovery/activity/recovery/FileScanResultActivity.kt
View file @
9dcda932
...
@@ -84,7 +84,7 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
...
@@ -84,7 +84,7 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
if
(
checkStorePermission
())
{
if
(
checkStorePermission
())
{
beginScan
()
beginScan
()
}
else
{
}
else
{
showGerPermission
()
{
showGerPermission
(
null
,
deny
=
{
finishToMain
()
}
)
{
requestStorePermission
(
launcher
,
result
=
{
requestStorePermission
(
launcher
,
result
=
{
if
(
it
)
beginScan
()
else
finishToMain
()
if
(
it
)
beginScan
()
else
finishToMain
()
})
})
...
...
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
View file @
9dcda932
...
@@ -30,10 +30,10 @@ object AdMaxInit {
...
@@ -30,10 +30,10 @@ object AdMaxInit {
initConfigBuilder
.
mediationProvider
=
AppLovinMediationProvider
.
MAX
initConfigBuilder
.
mediationProvider
=
AppLovinMediationProvider
.
MAX
// Enable test mode by default for the current device. Cannot be run on the main thread.
// Enable test mode by default for the current device. Cannot be run on the main thread.
val
currentGaid
=
AdvertisingIdClient
.
getAdvertisingIdInfo
(
this
).
id
//
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if
(
currentGaid
!=
null
)
{
//
if (currentGaid != null) {
initConfigBuilder
.
testDeviceAdvertisingIds
=
Collections
.
singletonList
(
currentGaid
)
//
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
}
//
}
// Initialize the AppLovin SDK
// Initialize the AppLovin SDK
val
sdk
=
AppLovinSdk
.
getInstance
(
this
)
val
sdk
=
AppLovinSdk
.
getInstance
(
this
)
...
...
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