Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
Out
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xjl
Out
Commits
31aad380
Commit
31aad380
authored
Dec 24, 2023
by
shenpc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整灭屏策略
parent
98109633
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
OutHelp.java
app/src/main/java/com/zl/sdk/OutHelp.java
+1
-1
CheckHelper.java
app/src/main/java/com/zl/sdk/out/CheckHelper.java
+4
-5
PureAdDialog.java
app/src/main/java/com/zl/sdk/out/ui/PureAdDialog.java
+2
-0
No files found.
app/src/main/java/com/zl/sdk/OutHelp.java
View file @
31aad380
...
...
@@ -631,7 +631,7 @@ public final class OutHelp implements KPListener {
Statistics.getInstance().dotEvent("out_close", map);
return;
}*/
Statistics
.
getInstance
().
dotEvent
(
"out_open"
);
//
Statistics.getInstance().dotEvent("out_open");
action
=
intent
.
getAction
();
OutHelp
.
get
().
receiverAction
(
action
);
...
...
app/src/main/java/com/zl/sdk/out/CheckHelper.java
View file @
31aad380
...
...
@@ -43,7 +43,7 @@ public class CheckHelper {
// return false;
// }
//
if
(
n
oN
eedCheckScreenOff
(
actionState
)
&&
!
AppOutUtils
.
isScreenOn
())
{
if
(
needCheckScreenOff
(
actionState
)
&&
!
AppOutUtils
.
isScreenOn
())
{
LogUtil
.
d
(
TAG
+
"(场景检查)手机未亮屏,不能展示"
);
EventUtils
.
staDialogFail
(
DialogFailReason
.
SCREEN_OFF
,
actionState
,
scenes
,
EventUtils
.
DIALOG_TYPE_AD
);
return
false
;
...
...
@@ -71,10 +71,9 @@ public class CheckHelper {
return
true
;
}
private
static
boolean
noNeedCheckScreenOff
(
int
actionState
)
{
return
actionState
!=
ActionFrom
.
ACTION_SCREEN_ON
.
getAction
()
&&
actionState
!=
ActionFrom
.
ACTION_USER_PRESENT
.
getAction
()
&&
actionState
!=
ActionFrom
.
ACTION_CLOSE_SYSTEM_DIALOGS
.
getAction
();
private
static
boolean
needCheckScreenOff
(
int
actionState
)
{
return
actionState
==
ActionFrom
.
ACTION_TIMER
.
getAction
()
||
actionState
==
ActionFrom
.
ACTION_BATTERY_CHANGED
.
getAction
();
}
// public static boolean checkAdCanShowBySceneNoIcon(int actionState) {
...
...
app/src/main/java/com/zl/sdk/out/ui/PureAdDialog.java
View file @
31aad380
...
...
@@ -18,6 +18,7 @@ import com.zl.sdk.event.statistics.Statistics;
import
com.zl.sdk.icon.IconHelp
;
import
com.zl.sdk.out.AppOutSP
;
import
com.zl.sdk.out.OutAdManager
;
import
com.zl.sdk.util.AppOutUtils
;
import
com.zl.sdk.util.DpiUtil
;
import
com.zl.sdk.util.LogUtil
;
...
...
@@ -167,6 +168,7 @@ class PureAdDialog extends AbsView {
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"ad_ready"
,
String
.
valueOf
(
adReady
));
map
.
put
(
"state"
,
String
.
valueOf
(
AppOutUtils
.
isScreenOn
()));
Statistics
.
getInstance
().
dotEvent
(
activity
,
"ad_dialog_exp"
,
""
,
map
);
}
catch
(
Exception
ignored
)
{
}
...
...
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