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
aa9596be
Commit
aa9596be
authored
Jul 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
....
parent
83fae7df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
AdDisplayUtils.java
...a/com/base/filerecoveryrecyclebin/ads/AdDisplayUtils.java
+0
-1
AdMaxNativeUtils.kt
...m/base/filerecoveryrecyclebin/ads/max/AdMaxNativeUtils.kt
+3
-3
NewComUtils.kt
...java/com/base/filerecoveryrecyclebin/utils/NewComUtils.kt
+0
-7
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/ads/AdDisplayUtils.java
View file @
aa9596be
...
@@ -241,7 +241,6 @@ public class AdDisplayUtils {
...
@@ -241,7 +241,6 @@ public class AdDisplayUtils {
editor
.
apply
();
editor
.
apply
();
}
}
public
void
incrementAdClickCount
()
{
public
void
incrementAdClickCount
()
{
if
(!
currentDate
.
equals
(
getCurrentDate
()))
{
if
(!
currentDate
.
equals
(
getCurrentDate
()))
{
currentDate
=
getCurrentDate
();
currentDate
=
getCurrentDate
();
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/ads/max/AdMaxNativeUtils.kt
View file @
aa9596be
...
@@ -53,7 +53,7 @@ object AdMaxNativeUtils {
...
@@ -53,7 +53,7 @@ object AdMaxNativeUtils {
LogEx
.
logDebug
(
TAG
,
"onNativeAdLoadFailed"
)
LogEx
.
logDebug
(
TAG
,
"onNativeAdLoadFailed"
)
LogEx
.
logDebug
(
TAG
,
"code=${p1.code}"
)
LogEx
.
logDebug
(
TAG
,
"code=${p1.code}"
)
LogEx
.
logDebug
(
TAG
,
"message=${p1.message}"
)
LogEx
.
logDebug
(
TAG
,
"message=${p1.message}"
)
AdDisplayUtils
.
getInstance
().
incrementAdRequestFailCount
()
//
AdDisplayUtils.getInstance().incrementAdRequestFailCount()
val
obj2
=
JSONObject
()
val
obj2
=
JSONObject
()
obj2
.
put
(
"reason"
,
"no_ad"
)
obj2
.
put
(
"reason"
,
"no_ad"
)
obj2
.
put
(
"ad_unit"
,
"nativeAd"
)
obj2
.
put
(
"ad_unit"
,
"nativeAd"
)
...
@@ -63,7 +63,7 @@ object AdMaxNativeUtils {
...
@@ -63,7 +63,7 @@ object AdMaxNativeUtils {
override
fun
onNativeAdClicked
(
p0
:
MaxAd
)
{
override
fun
onNativeAdClicked
(
p0
:
MaxAd
)
{
super
.
onNativeAdClicked
(
p0
)
super
.
onNativeAdClicked
(
p0
)
LogEx
.
logDebug
(
TAG
,
"onNativeAdClicked"
)
LogEx
.
logDebug
(
TAG
,
"onNativeAdClicked"
)
AdDisplayUtils
.
getInstance
().
incrementAdClickCount
()
//
AdDisplayUtils.getInstance().incrementAdClickCount()
nativeAd
?.
let
{
AdMaxEvent
.
clickAd
(
it
,
"nativeAd"
)
}
nativeAd
?.
let
{
AdMaxEvent
.
clickAd
(
it
,
"nativeAd"
)
}
AdmobCommonUtils
.
isMultiClick
(
nativeAd
)
AdmobCommonUtils
.
isMultiClick
(
nativeAd
)
}
}
...
@@ -156,7 +156,7 @@ object AdMaxNativeUtils {
...
@@ -156,7 +156,7 @@ object AdMaxNativeUtils {
nativeAdLoader
.
render
(
adView
,
nativeAd
)
nativeAdLoader
.
render
(
adView
,
nativeAd
)
parent
.
addView
(
adView
)
parent
.
addView
(
adView
)
nativeAd
?.
let
{
AdMaxEvent
.
showAd
(
it
,
"nativeAd"
,
activityString
)
}
nativeAd
?.
let
{
AdMaxEvent
.
showAd
(
it
,
"nativeAd"
,
activityString
)
}
AdDisplayUtils
.
getInstance
().
incrementAdDisplayCount
()
//
AdDisplayUtils.getInstance().incrementAdDisplayCount()
LogEx
.
logDebug
(
TAG
,
"loadingListener finish"
)
LogEx
.
logDebug
(
TAG
,
"loadingListener finish"
)
}
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/utils/NewComUtils.kt
View file @
aa9596be
...
@@ -2,9 +2,6 @@ package com.base.filerecoveryrecyclebin.utils
...
@@ -2,9 +2,6 @@ package com.base.filerecoveryrecyclebin.utils
import
android.util.Log
import
android.util.Log
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_CLICK_COUNT
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_DISPLAY_COUNT
import
com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_REQUEST_COUNT
import
com.base.filerecoveryrecyclebin.bean.ConfigBean
import
com.base.filerecoveryrecyclebin.bean.ConfigBean
import
com.base.filerecoveryrecyclebin.help.ConfigHelper
import
com.base.filerecoveryrecyclebin.help.ConfigHelper
import
com.google.gson.Gson
import
com.google.gson.Gson
...
@@ -104,10 +101,6 @@ object NewComUtils {
...
@@ -104,10 +101,6 @@ object NewComUtils {
}
}
AdDisplayUtils
.
getInstance
().
saveSp
()
AdDisplayUtils
.
getInstance
().
saveSp
()
}
}
}
}
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