Commit 21b79b27 authored by xujialang's avatar xujialang

调整设置锁屏展示的位置

parent a2171758
......@@ -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, newCallBack, notificationConfig);
// setShowLock(true);
surpriseMethod.invoke(null, mContext, intent, "", true, null, notificationConfig);
} catch (ClassNotFoundException | InvocationTargetException | NoSuchMethodException |
IllegalAccessException | InstantiationException e) {
......@@ -486,7 +486,7 @@ public final class OutHelp implements KPListener {
}
}
private void setShowLock(boolean showLock) {
public 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) {
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment