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
2a02906b
Commit
2a02906b
authored
Jul 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
14a59466
af6939c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
MyApplication.kt
app/src/main/java/com/base/datarecovery/MyApplication.kt
+1
-1
AdmobMaxHelper.kt
...src/main/java/com/base/datarecovery/ads/AdmobMaxHelper.kt
+3
-1
InstallHelps.kt
...src/main/java/com/base/datarecovery/utils/InstallHelps.kt
+2
-0
No files found.
app/src/main/java/com/base/datarecovery/MyApplication.kt
View file @
2a02906b
...
@@ -64,7 +64,7 @@ class MyApplication : BaseApplication() {
...
@@ -64,7 +64,7 @@ class MyApplication : BaseApplication() {
}
}
if
(
ifAgreePrivacy
)
{
if
(
ifAgreePrivacy
)
{
AdmobMaxHelper
.
initAdmobMaxAd
()
MainScope
().
launch
(
Dispatchers
.
Main
)
{
MainScope
().
launch
(
Dispatchers
.
Main
)
{
val
deferred
=
async
(
Dispatchers
.
IO
)
{
val
deferred
=
async
(
Dispatchers
.
IO
)
{
...
...
app/src/main/java/com/base/datarecovery/ads/AdmobMaxHelper.kt
View file @
2a02906b
...
@@ -16,6 +16,7 @@ import com.base.datarecovery.ads.max.AdMaxInterstitialUtils
...
@@ -16,6 +16,7 @@ import com.base.datarecovery.ads.max.AdMaxInterstitialUtils
import
com.base.datarecovery.ads.max.AdMaxOpenUtils
import
com.base.datarecovery.ads.max.AdMaxOpenUtils
import
com.base.datarecovery.help.BaseApplication
import
com.base.datarecovery.help.BaseApplication
import
com.base.datarecovery.help.ConfigHelper
import
com.base.datarecovery.help.ConfigHelper
import
com.base.datarecovery.utils.AppPreferences
import
com.base.datarecovery.utils.LogEx
import
com.base.datarecovery.utils.LogEx
import
com.google.android.gms.ads.MobileAds
import
com.google.android.gms.ads.MobileAds
import
java.util.concurrent.atomic.AtomicBoolean
import
java.util.concurrent.atomic.AtomicBoolean
...
@@ -73,7 +74,8 @@ object AdmobMaxHelper {
...
@@ -73,7 +74,8 @@ object AdmobMaxHelper {
}
}
fun
initAdmobMaxAd
(
activity
:
Activity
?
=
null
)
{
fun
initAdmobMaxAd
(
activity
:
Activity
?
=
null
)
{
if
(
ConfigHelper
.
admobTrueMaxFlase
)
{
val
ss
=
AppPreferences
.
getInstance
().
getInt
(
"admobTrueMaxFlase"
,
0
)
if
(
ss
==
1
)
{
if
(!
isAdInit
.
get
())
{
if
(!
isAdInit
.
get
())
{
MobileAds
.
initialize
(
BaseApplication
.
context
)
{
initializationStatus
->
MobileAds
.
initialize
(
BaseApplication
.
context
)
{
initializationStatus
->
isAdInit
.
set
(
true
)
isAdInit
.
set
(
true
)
...
...
app/src/main/java/com/base/datarecovery/utils/InstallHelps.kt
View file @
2a02906b
...
@@ -5,6 +5,7 @@ import android.os.Debug
...
@@ -5,6 +5,7 @@ import android.os.Debug
import
com.android.installreferrer.api.InstallReferrerClient
import
com.android.installreferrer.api.InstallReferrerClient
import
com.android.installreferrer.api.InstallReferrerStateListener
import
com.android.installreferrer.api.InstallReferrerStateListener
import
com.base.datarecovery.BuildConfig
import
com.base.datarecovery.BuildConfig
import
com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.fcm.RecoveryTimerManager
import
com.base.datarecovery.fcm.RecoveryTimerManager
import
com.base.datarecovery.help.BaseApplication
import
com.base.datarecovery.help.BaseApplication
import
org.json.JSONObject
import
org.json.JSONObject
...
@@ -46,6 +47,7 @@ object InstallHelps {
...
@@ -46,6 +47,7 @@ object InstallHelps {
}
}
NewComUtils
.
requestCfg
{
NewComUtils
.
requestCfg
{
AdmobMaxHelper
.
initAdmobMaxAd
()
val
timerStatus
:
Int
=
val
timerStatus
:
Int
=
AppPreferences
.
getInstance
().
getString
(
"timerS"
,
"1"
)
AppPreferences
.
getInstance
().
getString
(
"timerS"
,
"1"
)
.
toIntOrNull
()
?:
1
.
toIntOrNull
()
?:
1
...
...
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