Commit 1ddaec50 authored by xujialang's avatar xujialang

Merge remote-tracking branch 'origin/master'

parents 79889eec abf85af4
...@@ -44,6 +44,8 @@ public final class OutHelp implements KPListener { ...@@ -44,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;
...@@ -56,10 +58,11 @@ public final class OutHelp implements KPListener { ...@@ -56,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;
LogUtil.d(TAG + "初始化 isDebug=" + isDebug); LogUtil.d(TAG + "初始化 isDebug=" + isDebug);
LogUtil.d(TAG + "初始化 appId=" + appId); LogUtil.d(TAG + "初始化 appId=" + appId);
...@@ -152,6 +155,10 @@ public final class OutHelp implements KPListener { ...@@ -152,6 +155,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