Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
Out
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xjl
Out
Commits
76371fe2
Commit
76371fe2
authored
Dec 01, 2023
by
shenpc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
传入sdkName
parent
362b727c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
OutHelp.java
app/src/main/java/com/zl/sdk/OutHelp.java
+8
-1
OutAdManager.java
app/src/main/java/com/zl/sdk/out/OutAdManager.java
+10
-4
No files found.
app/src/main/java/com/zl/sdk/OutHelp.java
View file @
76371fe2
...
...
@@ -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
app/src/main/java/com/zl/sdk/out/OutAdManager.java
View file @
76371fe2
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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment