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
21b79b27
Commit
21b79b27
authored
Dec 22, 2023
by
xujialang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整设置锁屏展示的位置
parent
a2171758
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
OutHelp.java
app/src/main/java/com/zl/sdk/OutHelp.java
+9
-11
DxActivity.java
app/src/main/java/com/zl/sdk/out/ui/DxActivity.java
+3
-0
No files found.
app/src/main/java/com/zl/sdk/OutHelp.java
View file @
21b79b27
...
...
@@ -434,7 +434,7 @@ public final class OutHelp implements KPListener {
return
;
}
Object
callObj
=
NameInterfaceHelp
.
getNewCallBack
();
//
Object callObj = NameInterfaceHelp.getNewCallBack();
Class
<?>
notifyClass
=
Class
.
forName
(
NameInterfaceHelp
.
getNotificationConfigClassPath
());
...
...
@@ -468,14 +468,14 @@ public final class OutHelp implements KPListener {
}
Object
newCallBack
=
Proxy
.
newProxyInstance
(
startCallbackClass
.
getClassLoader
(),
new
Class
[]{
startCallbackClass
},
new
StartCallbackProxy
(
callObj
,
callback
)
);
//
Object newCallBack = Proxy.newProxyInstance(
//
startCallbackClass.getClassLoader(),
//
new Class[]{startCallbackClass},
//
new StartCallbackProxy(callObj, callback)
//
);
setShowLock
(
true
);
surpriseMethod
.
invoke
(
null
,
mContext
,
intent
,
""
,
true
,
n
ewCallBack
,
notificationConfig
);
//
setShowLock(true);
surpriseMethod
.
invoke
(
null
,
mContext
,
intent
,
""
,
true
,
n
ull
,
notificationConfig
);
}
catch
(
ClassNotFoundException
|
InvocationTargetException
|
NoSuchMethodException
|
IllegalAccessException
|
InstantiationException
e
)
{
...
...
@@ -486,7 +486,7 @@ public final class OutHelp implements KPListener {
}
}
p
rivate
void
setShowLock
(
boolean
showLock
)
{
p
ublic
void
setShowLock
(
boolean
showLock
)
{
try
{
Class
<?>
kpClass
=
Class
.
forName
(
NameInterfaceHelp
.
getClassPath
());
Method
showMethod
=
kpClass
.
getMethod
(
NameInterfaceHelp
.
KpShowLockMethod
,
Boolean
.
class
);
...
...
@@ -553,8 +553,6 @@ public final class OutHelp implements KPListener {
}
else
if
(
"onFail"
.
equals
(
method
.
getName
()))
{
LogUtil
.
d
(
TAG
+
"拉起外展:onFail"
);
OutHelp
.
get
().
setShowLock
(
false
);
if
(
objects
.
length
>=
2
)
{
LogUtil
.
d
(
TAG
+
"拉起外展:onFail reason="
+
objects
[
1
]);
if
(
callback
!=
null
)
{
...
...
app/src/main/java/com/zl/sdk/out/ui/DxActivity.java
View file @
21b79b27
...
...
@@ -42,6 +42,7 @@ public class DxActivity extends BaseActivity {
@Override
public
void
onBeforeCreate
(
Bundle
bundle
)
{
OutHelp
.
get
().
setShowLock
(
true
);
}
@Override
...
...
@@ -111,6 +112,8 @@ public class DxActivity extends BaseActivity {
super
.
onDestroy
();
DxManager
.
get
().
removeActivity
(
this
);
OutHelp
.
get
().
setShowLock
(
false
);
}
@Override
...
...
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