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
e70ee370
Commit
e70ee370
authored
Jul 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
513d05f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
AdmobMaxHelper.kt
...ava/com/base/filerecoveryrecyclebin/ads/AdmobMaxHelper.kt
+3
-3
AdMaxInterstitialUtils.kt
.../filerecoveryrecyclebin/ads/max/AdMaxInterstitialUtils.kt
+4
-4
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/ads/AdmobMaxHelper.kt
View file @
e70ee370
...
@@ -39,14 +39,14 @@ object AdmobMaxHelper {
...
@@ -39,14 +39,14 @@ object AdmobMaxHelper {
return
return
}
}
if
(
getSpAdmobTrueMaxFalse
())
{
if
(
getSpAdmobTrueMaxFalse
())
{
LogEx
.
logDebug
(
TAG
,
"init sp Admob"
)
LogEx
.
logDebug
(
TAG
,
"init sp Admob"
)
if
(!
isAdInit
.
get
())
{
if
(!
isAdInit
.
get
())
{
MobileAds
.
initialize
(
BaseApplication
.
context
)
{
initializationStatus
->
MobileAds
.
initialize
(
BaseApplication
.
context
)
{
initializationStatus
->
isAdInit
.
set
(
true
)
isAdInit
.
set
(
true
)
}
}
}
}
}
else
{
}
else
{
LogEx
.
logDebug
(
TAG
,
"init sp AdMax"
)
LogEx
.
logDebug
(
TAG
,
"init sp AdMax"
)
if
(!
isAdInit
.
get
())
{
if
(!
isAdInit
.
get
())
{
BaseApplication
.
context
.
initAdMax
()
BaseApplication
.
context
.
initAdMax
()
}
}
...
@@ -130,7 +130,7 @@ object AdmobMaxHelper {
...
@@ -130,7 +130,7 @@ object AdmobMaxHelper {
AdMaxInit
.
maxInitAction
=
{
AdMaxInit
.
maxInitAction
=
{
Log
.
d
(
TAG
,
"max init suc"
)
Log
.
d
(
TAG
,
"max init suc"
)
// AdMaxOpenUtils.loadAppOpenAd(activity)
// AdMaxOpenUtils.loadAppOpenAd(activity)
AdMaxInterstitialUtils
.
loadInterstitialAd
(
activity
)
//
AdMaxInterstitialUtils.loadInterstitialAd(activity)
}
}
}
}
}
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/ads/max/AdMaxInterstitialUtils.kt
View file @
e70ee370
...
@@ -59,7 +59,7 @@ object AdMaxInterstitialUtils {
...
@@ -59,7 +59,7 @@ object AdMaxInterstitialUtils {
AdDisplayUtils
.
getInstance
().
incrementAdDisplayCount
()
AdDisplayUtils
.
getInstance
().
incrementAdDisplayCount
()
AdMaxEvent
.
showAd
(
p0
,
"interAd"
,
activityString
)
AdMaxEvent
.
showAd
(
p0
,
"interAd"
,
activityString
)
MyApplication
.
isInterOpenShowing
=
true
isInterOpenShowing
=
true
}
}
override
fun
onAdHidden
(
p0
:
MaxAd
)
{
override
fun
onAdHidden
(
p0
:
MaxAd
)
{
...
@@ -67,9 +67,9 @@ object AdMaxInterstitialUtils {
...
@@ -67,9 +67,9 @@ object AdMaxInterstitialUtils {
onHidden
?.
invoke
()
onHidden
?.
invoke
()
onHidden
=
null
onHidden
=
null
AdMaxOpenUtils
.
loadAppOpenAd
(
activity
)
AdMaxOpenUtils
.
loadAppOpenAd
(
activity
)
loadInterstitialAd
(
activity
)
//
loadInterstitialAd(activity)
MyApplication
.
isInterOpenShowing
=
false
isInterOpenShowing
=
false
}
}
override
fun
onAdClicked
(
p0
:
MaxAd
)
{
override
fun
onAdClicked
(
p0
:
MaxAd
)
{
...
@@ -89,7 +89,7 @@ object AdMaxInterstitialUtils {
...
@@ -89,7 +89,7 @@ object AdMaxInterstitialUtils {
obj2
.
put
(
"ad_unit"
,
"interAd"
)
obj2
.
put
(
"ad_unit"
,
"interAd"
)
EventUtils
.
event
(
"ad_show_error"
,
ext
=
obj2
)
EventUtils
.
event
(
"ad_show_error"
,
ext
=
obj2
)
MyApplication
.
isInterOpenShowing
=
false
isInterOpenShowing
=
false
}
}
})
})
interstitialAd
?.
setRevenueListener
(
AdMaxEvent
.
EventOnPaidEventListener
())
interstitialAd
?.
setRevenueListener
(
AdMaxEvent
.
EventOnPaidEventListener
())
...
...
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