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 {
if
(
_inst
!=
null
)
{
return
_inst
;
}
else
{
WeakReference
<
Activity
>
activityWeakReference
=
new
WeakReference
<>(
activity
);
_inst
=
new
YlhVideoAdManager
(
activityWeakReference
);
_inst
=
new
YlhVideoAdManager
(
activity
);
return
_inst
;
}
}
private
YlhVideoAdManager
(
WeakReference
<
Activity
>
activity
)
{
init
(
activity
.
get
()
);
private
YlhVideoAdManager
(
Activity
activity
)
{
init
(
activity
);
}
private
void
init
(
Activity
activity
)
{
...
...
@@ -53,6 +52,7 @@ public class YlhVideoAdManager extends BaseVideoAd {
@Override
public
void
onDestroy
()
{
activity
=
null
;
rewardVideoAD
=
null
;
}
/**
...
...
@@ -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
public
void
onADLoad
()
{
//广告加载成功,可在此回调后进行广告展示,此时广告过期时间确定,可通过RewardVideoAD.getExpireTimestamp()获取
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