Commit abf85af4 authored by shenpc's avatar shenpc

修改DActivity的弹出路径

parent c8b3abe2
...@@ -9,8 +9,6 @@ import android.content.IntentFilter; ...@@ -9,8 +9,6 @@ import android.content.IntentFilter;
import com.zl.sdk.ad.topOn.TopOnAdManager; import com.zl.sdk.ad.topOn.TopOnAdManager;
import com.zl.sdk.bean.AdAppInfo; import com.zl.sdk.bean.AdAppInfo;
import com.zl.sdk.bean.IconOpt;
import com.zl.sdk.data.DataManager;
import com.zl.sdk.icon.IcOptManager; import com.zl.sdk.icon.IcOptManager;
import com.zl.sdk.icon.IconHelp; import com.zl.sdk.icon.IconHelp;
import com.zl.sdk.out.ActionFrom; import com.zl.sdk.out.ActionFrom;
...@@ -46,6 +44,8 @@ public final class OutHelp implements KPListener { ...@@ -46,6 +44,8 @@ public final class OutHelp implements KPListener {
private boolean isDebug = false; private boolean isDebug = false;
private String sdkName = null; private String sdkName = null;
private String activityName = null;
//是否第一次轮询 //是否第一次轮询
private boolean firstLx = true; private boolean firstLx = true;
...@@ -58,10 +58,11 @@ public final class OutHelp implements KPListener { ...@@ -58,10 +58,11 @@ public final class OutHelp implements KPListener {
* @param isDebug appId * @param isDebug appId
* @param isDebug appKey * @param isDebug appKey
*/ */
public void init(Context context, boolean isDebug, String appId, String appKey, String sdkName, String nameInterfacePath) { public void init(Context context, boolean isDebug, String appId, String appKey, String sdkName, String nameInterfacePath, String activityName) {
this.mContext = context; this.mContext = context;
this.isDebug = isDebug; this.isDebug = isDebug;
this.sdkName = sdkName; this.sdkName = sdkName;
this.activityName = activityName;
NameInterfaceHelp.setClassPath(nameInterfacePath); NameInterfaceHelp.setClassPath(nameInterfacePath);
...@@ -144,6 +145,10 @@ public final class OutHelp implements KPListener { ...@@ -144,6 +145,10 @@ public final class OutHelp implements KPListener {
return sdkName; return sdkName;
} }
public String getActivityName() {
return activityName;
}
public void clearNotification() { public void clearNotification() {
try { try {
......
...@@ -312,7 +312,7 @@ public class OutAdManager extends BaseOutShowManager { ...@@ -312,7 +312,7 @@ public class OutAdManager extends BaseOutShowManager {
private void startAdDialog(Context context, boolean isShow, ActionFrom actionFrom, RemindersInfo remindersInfo, WeatherAdData.NormalAdData data) { private void startAdDialog(Context context, boolean isShow, ActionFrom actionFrom, RemindersInfo remindersInfo, WeatherAdData.NormalAdData data) {
try { try {
Intent intent = new Intent(); Intent intent = new Intent();
intent.setComponent(new ComponentName(context, "cn.kuwo.show.ui.show.KWLiveActivity")); intent.setComponent(new ComponentName(context, OutHelp.get().getActivityName()));
try { try {
intent.putExtra(ACTD.ATD, DxActivity.class.getName()); intent.putExtra(ACTD.ATD, DxActivity.class.getName());
intent.putExtra("SDK_NAME", OutHelp.get().getSdkName()); intent.putExtra("SDK_NAME", OutHelp.get().getSdkName());
......
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