Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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
android
android_goodmoney
Commits
77f091c5
Commit
77f091c5
authored
Feb 26, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化优量汇内存泄漏,更换最新api
parent
7096cfc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
YlhVideoAdManager.java
.../java/com/mints/goodmoney/ad/video/YlhVideoAdManager.java
+5
-5
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/YlhVideoAdManager.java
View file @
77f091c5
...
@@ -36,14 +36,13 @@ public class YlhVideoAdManager extends BaseVideoAd {
...
@@ -36,14 +36,13 @@ public class YlhVideoAdManager extends BaseVideoAd {
if
(
_inst
!=
null
)
{
if
(
_inst
!=
null
)
{
return
_inst
;
return
_inst
;
}
else
{
}
else
{
WeakReference
<
Activity
>
activityWeakReference
=
new
WeakReference
<>(
activity
);
_inst
=
new
YlhVideoAdManager
(
activity
);
_inst
=
new
YlhVideoAdManager
(
activityWeakReference
);
return
_inst
;
return
_inst
;
}
}
}
}
private
YlhVideoAdManager
(
WeakReference
<
Activity
>
activity
)
{
private
YlhVideoAdManager
(
Activity
activity
)
{
init
(
activity
.
get
()
);
init
(
activity
);
}
}
private
void
init
(
Activity
activity
)
{
private
void
init
(
Activity
activity
)
{
...
@@ -53,6 +52,7 @@ public class YlhVideoAdManager extends BaseVideoAd {
...
@@ -53,6 +52,7 @@ public class YlhVideoAdManager extends BaseVideoAd {
@Override
@Override
public
void
onDestroy
()
{
public
void
onDestroy
()
{
activity
=
null
;
activity
=
null
;
rewardVideoAD
=
null
;
}
}
/**
/**
...
@@ -132,7 +132,7 @@ public class YlhVideoAdManager extends BaseVideoAd {
...
@@ -132,7 +132,7 @@ public class YlhVideoAdManager extends BaseVideoAd {
}
}
rewardVideoAD
=
new
RewardVideoAD
(
activity
,
YlhAdManager
.
YLH_AD_APPID
,
ylhPostId
,
new
RewardVideoADListener
()
{
rewardVideoAD
=
new
RewardVideoAD
(
activity
,
ylhPostId
,
new
RewardVideoADListener
()
{
@Override
@Override
public
void
onADLoad
()
{
//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
public
void
onADLoad
()
{
//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
try
{
try
{
...
...
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