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
60f3ba95
Commit
60f3ba95
authored
Jan 20, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4fc8d0b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
YlhVideoAdManager.java
.../java/com/mints/goodmoney/ad/video/YlhVideoAdManager.java
+3
-1
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+1
-0
TaskDialog.kt
...rc/main/java/com/mints/goodmoney/ui/widgets/TaskDialog.kt
+5
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/YlhVideoAdManager.java
View file @
60f3ba95
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.video;
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.video;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.os.SystemClock
;
import
android.os.SystemClock
;
import
com.mints.goodmoney.MintsApplication
;
import
com.mints.goodmoney.common.AppConfig
;
import
com.mints.goodmoney.common.AppConfig
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.manager.TrackManager
;
import
com.mints.goodmoney.manager.TrackManager
;
...
@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager;
...
@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager;
import
com.mints.goodmoney.mvp.presenters.YlhVideoAdPresenter
;
import
com.mints.goodmoney.mvp.presenters.YlhVideoAdPresenter
;
import
com.mints.goodmoney.mvp.views.VideoAdManagerView
;
import
com.mints.goodmoney.mvp.views.VideoAdManagerView
;
import
com.mints.goodmoney.utils.LogUtil
;
import
com.mints.goodmoney.utils.LogUtil
;
import
com.mints.goodmoney.utils.ToastUtil
;
import
com.qq.e.ads.rewardvideo.RewardVideoAD
;
import
com.qq.e.ads.rewardvideo.RewardVideoAD
;
import
com.qq.e.ads.rewardvideo.RewardVideoADListener
;
import
com.qq.e.ads.rewardvideo.RewardVideoADListener
;
import
com.qq.e.comm.util.AdError
;
import
com.qq.e.comm.util.AdError
;
...
@@ -133,7 +135,7 @@ public class YlhVideoAdManager extends BaseVideoAd implements VideoAdManagerView
...
@@ -133,7 +135,7 @@ public class YlhVideoAdManager extends BaseVideoAd implements VideoAdManagerView
ylhPostId
=
YlhAdManager
.
INSTANCE
.
getYLH_AD_VEDIO_MOREDIALOG_POSTID
();
ylhPostId
=
YlhAdManager
.
INSTANCE
.
getYLH_AD_VEDIO_MOREDIALOG_POSTID
();
break
;
break
;
}
}
//
ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
ToastUtil
.
show
(
MintsApplication
.
getContext
(),
"ylh vedio:"
+
ylhPostId
);
if
(
rewardVideoAD
!=
null
)
{
if
(
rewardVideoAD
!=
null
)
{
rewardVideoAD
=
null
;
rewardVideoAD
=
null
;
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
60f3ba95
...
@@ -561,6 +561,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -561,6 +561,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
carrierType
==
Constant
.
CARRIER_BLESSINGBAG_DOUBLE
||
// 首页福袋翻倍
carrierType
==
Constant
.
CARRIER_BLESSINGBAG_DOUBLE
||
// 首页福袋翻倍
carrierType
==
Constant
.
CARRIER_SMALLHOMEVEDIO_DOUBLE
||
// 短视频红包翻倍
carrierType
==
Constant
.
CARRIER_SMALLHOMEVEDIO_DOUBLE
||
// 短视频红包翻倍
carrierType
==
Constant
.
CARRIER_HOMEVEDIO_DOUBLE
)
{
// 小视频红包翻倍
carrierType
==
Constant
.
CARRIER_HOMEVEDIO_DOUBLE
)
{
// 小视频红包翻倍
isSuperTask
=
showHigh
if
(
isSuperTask
)
{
if
(
isSuperTask
)
{
refreshHighTask
(
highCoin
)
refreshHighTask
(
highCoin
)
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/TaskDialog.kt
View file @
60f3ba95
...
@@ -56,7 +56,11 @@ class TaskDialog(context: Context) :
...
@@ -56,7 +56,11 @@ class TaskDialog(context: Context) :
}
}
fun
setData
(
data
:
CoralAD
,
seconds
:
Int
,
coin
:
Int
)
{
fun
setData
(
data
:
CoralAD
,
seconds
:
Int
,
coin
:
Int
)
{
tvText1
.
text
=
"下载并试玩$seconds"
+
"秒"
if
(
seconds
>
0
)
{
tvText1
.
text
=
"下载并试玩$seconds"
+
"秒"
}
else
{
tvText1
.
text
=
"下载领取金币"
}
tvText2
.
text
=
"+$coin"
+
"金币"
tvText2
.
text
=
"+$coin"
+
"金币"
tvTitle
.
text
=
data
.
title
tvTitle
.
text
=
data
.
title
GlideUtils
.
loadImageView
(
context
,
data
.
icon
,
ivAvatar
)
GlideUtils
.
loadImageView
(
context
,
data
.
icon
,
ivAvatar
)
...
...
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