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
2a66925f
Commit
2a66925f
authored
Jul 18, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
215a4720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
AdDisplayUtils.java
...c/main/java/com/base/datarecovery/ads/AdDisplayUtils.java
+17
-14
No files found.
app/src/main/java/com/base/datarecovery/ads/AdDisplayUtils.java
View file @
2a66925f
...
...
@@ -3,6 +3,7 @@ package com.base.datarecovery.ads;
import
android.content.SharedPreferences
;
import
android.util.Log
;
import
com.base.datarecovery.BuildConfig
;
import
com.base.datarecovery.MyApplication
;
import
com.base.datarecovery.help.BaseApplication
;
import
com.base.datarecovery.utils.EventUtils
;
...
...
@@ -70,20 +71,22 @@ public class AdDisplayUtils {
}
public
boolean
shouldShowAd
(
String
ad_unit
)
{
return
true
;
// boolean s = shouldDisplayAd() && shouldIncrementClickCount() && shouldIncrementRequestFailAd();
// if (!s) {
// LogEx.INSTANCE.logDebug("glc", "!shouldShowAd", false);
// JSONObject obj2 = new JSONObject();
// try {
// obj2.put("reason", "no ad");
// obj2.put("ad_unit", ad_unit);
// EventUtils.INSTANCE.event("ad_show_error", null, obj2, false);
// } catch (JSONException e) {
//
// }
// }
// return s;
if
(
BuildConfig
.
DEBUG
)
{
return
true
;
}
boolean
s
=
shouldDisplayAd
()
&&
shouldIncrementClickCount
()
&&
shouldIncrementRequestFailAd
();
if
(!
s
)
{
LogEx
.
INSTANCE
.
logDebug
(
"glc"
,
"!shouldShowAd"
,
false
);
JSONObject
obj2
=
new
JSONObject
();
try
{
obj2
.
put
(
"reason"
,
"no ad"
);
obj2
.
put
(
"ad_unit"
,
ad_unit
);
EventUtils
.
INSTANCE
.
event
(
"ad_show_error"
,
null
,
obj2
,
false
);
}
catch
(
JSONException
e
)
{
}
}
return
s
;
}
public
void
incrementAdDisplayCount
()
{
...
...
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