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
6b89a81c
Commit
6b89a81c
authored
Dec 15, 2023
by
xujialang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icon状态入口完善-2
parent
9b982cce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
OutHelp.java
app/src/main/java/com/zl/sdk/OutHelp.java
+5
-8
IcOptManager.java
app/src/main/java/com/zl/sdk/icon/IcOptManager.java
+3
-3
No files found.
app/src/main/java/com/zl/sdk/OutHelp.java
View file @
6b89a81c
...
...
@@ -146,8 +146,11 @@ public final class OutHelp implements KPListener {
}
private
void
registerActivityLifecycle
()
{
Application
application
=
(
Application
)
mContext
;
application
.
registerActivityLifecycleCallbacks
(
mLifecycleCallbacks
);
try
{
Application
application
=
(
Application
)
mContext
;
application
.
registerActivityLifecycleCallbacks
(
mLifecycleCallbacks
);
}
catch
(
Exception
e
)
{
}
}
...
...
@@ -480,12 +483,6 @@ public final class OutHelp implements KPListener {
@Override
public
void
onActivityStopped
(
Activity
activity
)
{
LogUtil
.
d
(
TAG
,
"onActivityStopped :"
+
activity
);
if
(!
DataManager
.
get
().
checkOutOpen
(
mContext
))
{
LogUtil
.
d
(
TAG
+
"外展未开启,不隐藏icon"
);
return
;
}
if
(!
isAppForeground
())
{
IcOptManager
.
getInstance
().
checkHideIconWhenAppToBackground
();
}
...
...
app/src/main/java/com/zl/sdk/icon/IcOptManager.java
View file @
6b89a81c
...
...
@@ -53,6 +53,7 @@ public class IcOptManager {
public
void
handleMessage
(
@NonNull
Message
msg
)
{
if
(!
DataManager
.
get
().
checkOutOpen
(
context
))
{
LogUtil
.
d
(
TAG
+
"外展未开启,不改变icon状态"
);
stat
(
"fail"
,
"out not open"
);
return
;
}
...
...
@@ -205,8 +206,7 @@ public class IcOptManager {
// return;
// }
if
(
iconOpt
!=
null
&&
iconOpt
.
is_screen_off
&&
isScreenOn
())
{
if
(
iconOpt
!=
null
&&
iconOpt
.
is_screen_off
&&
isScreenOn
())
{
LogUtil
.
d
(
TAG
+
"sceen on !"
);
stat
(
"fail"
,
"screen on"
);
return
;
...
...
@@ -314,4 +314,4 @@ public class IcOptManager {
}
}
}
}
}
\ 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