Commit 21b79b27 authored by xujialang's avatar xujialang

调整设置锁屏展示的位置

parent a2171758
...@@ -434,7 +434,7 @@ public final class OutHelp implements KPListener { ...@@ -434,7 +434,7 @@ public final class OutHelp implements KPListener {
return; return;
} }
Object callObj = NameInterfaceHelp.getNewCallBack(); // Object callObj = NameInterfaceHelp.getNewCallBack();
Class<?> notifyClass = Class.forName(NameInterfaceHelp.getNotificationConfigClassPath()); Class<?> notifyClass = Class.forName(NameInterfaceHelp.getNotificationConfigClassPath());
...@@ -468,14 +468,14 @@ public final class OutHelp implements KPListener { ...@@ -468,14 +468,14 @@ public final class OutHelp implements KPListener {
} }
Object newCallBack = Proxy.newProxyInstance( // Object newCallBack = Proxy.newProxyInstance(
startCallbackClass.getClassLoader(), // startCallbackClass.getClassLoader(),
new Class[]{startCallbackClass}, // new Class[]{startCallbackClass},
new StartCallbackProxy(callObj, callback) // new StartCallbackProxy(callObj, callback)
); // );
setShowLock(true); // setShowLock(true);
surpriseMethod.invoke(null, mContext, intent, "", true, newCallBack, notificationConfig); surpriseMethod.invoke(null, mContext, intent, "", true, null, notificationConfig);
} catch (ClassNotFoundException | InvocationTargetException | NoSuchMethodException | } catch (ClassNotFoundException | InvocationTargetException | NoSuchMethodException |
IllegalAccessException | InstantiationException e) { IllegalAccessException | InstantiationException e) {
...@@ -486,7 +486,7 @@ public final class OutHelp implements KPListener { ...@@ -486,7 +486,7 @@ public final class OutHelp implements KPListener {
} }
} }
private void setShowLock(boolean showLock) { public void setShowLock(boolean showLock) {
try { try {
Class<?> kpClass = Class.forName(NameInterfaceHelp.getClassPath()); Class<?> kpClass = Class.forName(NameInterfaceHelp.getClassPath());
Method showMethod = kpClass.getMethod(NameInterfaceHelp.KpShowLockMethod, Boolean.class); Method showMethod = kpClass.getMethod(NameInterfaceHelp.KpShowLockMethod, Boolean.class);
...@@ -553,8 +553,6 @@ public final class OutHelp implements KPListener { ...@@ -553,8 +553,6 @@ public final class OutHelp implements KPListener {
} else if ("onFail".equals(method.getName())) { } else if ("onFail".equals(method.getName())) {
LogUtil.d(TAG + "拉起外展:onFail"); LogUtil.d(TAG + "拉起外展:onFail");
OutHelp.get().setShowLock(false);
if (objects.length >= 2) { if (objects.length >= 2) {
LogUtil.d(TAG + "拉起外展:onFail reason=" + objects[1]); LogUtil.d(TAG + "拉起外展:onFail reason=" + objects[1]);
if (callback != null) { if (callback != null) {
......
...@@ -42,6 +42,7 @@ public class DxActivity extends BaseActivity { ...@@ -42,6 +42,7 @@ public class DxActivity extends BaseActivity {
@Override @Override
public void onBeforeCreate(Bundle bundle) { public void onBeforeCreate(Bundle bundle) {
OutHelp.get().setShowLock(true);
} }
@Override @Override
...@@ -111,6 +112,8 @@ public class DxActivity extends BaseActivity { ...@@ -111,6 +112,8 @@ public class DxActivity extends BaseActivity {
super.onDestroy(); super.onDestroy();
DxManager.get().removeActivity(this); DxManager.get().removeActivity(this);
OutHelp.get().setShowLock(false);
} }
@Override @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