Commit 76371fe2 authored by shenpc's avatar shenpc

传入sdkName

parent 362b727c
......@@ -32,6 +32,8 @@ public final class OutHelp {
private Context mContext = null;
private boolean isDebug = false;
private String sdkName = null;
private Intent intent = null;
//icon状态返回
private IconStateCallBack iconStateCallBack = null;
......@@ -45,9 +47,10 @@ public final class OutHelp {
* @param appInfo topon应用信息
* @param isDebug 开启调试
*/
public void init(Context context, AdAppInfo appInfo, boolean isDebug) {
public void init(Context context, AdAppInfo appInfo, boolean isDebug, String sdkName) {
this.mContext = context;
this.isDebug = isDebug;
this.sdkName = sdkName;
//初始化保活
KplvManager.getInstance().attachBase(context);
......@@ -138,4 +141,8 @@ public final class OutHelp {
public void cleanDialogCallBack() {
dialogShowStatusCallback = null;
}
public String getSdkName() {
return sdkName;
}
}
\ No newline at end of file
package com.zl.sdk.out;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
......@@ -24,6 +25,7 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import cn.kuwo.show.mod.ACTD;
import f.g.ajglwh.fdauef.cpaukw.FG;
import f.g.ajglwh.fdauef.cpaukw.NotificationConfig;
import f.g.ajglwh.fdauef.cpaukw.StartCallback;
......@@ -317,10 +319,14 @@ public class OutAdManager extends BaseOutShowManager {
*/
private void startAdDialog(Context context, boolean isShow, ActionFrom actionFrom, RemindersInfo remindersInfo, WeatherAdData.NormalAdData data) {
try {
Intent intent = OutHelp.get().getIntent();
if (intent == null) {
return;
// Intent intent = OutHelp.get().getIntent();
Intent intent = new Intent();
intent.setComponent(new ComponentName(context, "cn.kuwo.show.ui.show.KWLiveActivity"));
try {
intent.putExtra(ACTD.ATD, DxActivity.class.getName());
intent.putExtra("SDK_NAME", OutHelp.get().getSdkName());
} catch (Exception e) {
intent.putExtra(ACTD.ATD, DxActivity.class.getName());
}
if (AppOutUtils.isScreenLock()) {
......
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