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
62c31411
Commit
62c31411
authored
Jul 25, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
1b372b94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
AdDisplayUtils.java
...c/main/java/com/base/datarecovery/ads/AdDisplayUtils.java
+5
-0
LogEx.kt
app/src/main/java/com/base/datarecovery/utils/LogEx.kt
+2
-2
No files found.
app/src/main/java/com/base/datarecovery/ads/AdDisplayUtils.java
View file @
62c31411
...
...
@@ -18,6 +18,7 @@ import java.util.Date;
import
java.util.Locale
;
public
class
AdDisplayUtils
{
private
String
TAG
=
"AdDisplayUtils"
;
private
static
final
int
DEFAULT_MAX_AD_DISPLAY_COUNT
=
45
;
// 总广告展示次数限制默认值
private
static
final
int
DEFAULT_MAX_AD_CLICK_COUNT
=
10
;
// 单个广告点击次数限制默认值
private
static
final
int
DEFAULT_MAX_AD_REQUEST_FAIL_COUNT
=
20
;
// 单个广告点击次数限制默认值
...
...
@@ -89,6 +90,7 @@ public class AdDisplayUtils {
}
public
void
setMaxAdRequestCount
(
int
maxAdRequestCount
)
{
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"maxAdRequestCount"
+
maxAdRequestCount
,
false
);
this
.
maxAdRequestCount
=
maxAdRequestCount
;
saveMaxAdRequestCount
();
}
...
...
@@ -205,6 +207,7 @@ public class AdDisplayUtils {
}
public
void
setMaxAdDisplayCount
(
int
maxAdDisplayCount
)
{
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"maxAdDisplayCount"
+
maxAdDisplayCount
,
false
);
this
.
maxAdDisplayCount
=
maxAdDisplayCount
;
saveMaxAdDisplayCount
();
}
...
...
@@ -214,6 +217,7 @@ public class AdDisplayUtils {
}
public
void
setMaxAdClickCount
(
int
maxAdClickCount
)
{
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"maxAdClickCount"
+
maxAdClickCount
,
false
);
this
.
maxAdClickCount
=
maxAdClickCount
;
saveMaxAdClickCount
();
}
...
...
@@ -237,6 +241,7 @@ public class AdDisplayUtils {
}
public
void
setMaxAdRequestFailCount
(
int
maxAdRequestFailCount
)
{
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"maxAdRequestFailCount"
+
maxAdRequestFailCount
,
false
);
this
.
maxAdRequestFailCount
=
maxAdRequestFailCount
;
saveMaxAdRequestFailCount
();
}
...
...
app/src/main/java/com/base/datarecovery/utils/LogEx.kt
View file @
62c31411
...
...
@@ -19,9 +19,9 @@ object LogEx {
}
else
{
if
(!
isOpen
)
return
if
(
filterTAG
.
contains
(
tag
))
return
//
if (BuildConfig.DEBUG) {
if
(
BuildConfig
.
DEBUG
)
{
Log
.
e
(
tag
,
content
)
//
}
}
}
}
}
\ No newline at end of file
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