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
6fe62a9c
Commit
6fe62a9c
authored
Jan 15, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
珊瑚广告添加金币,改为后台提供
parent
889c7895
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
ShVideoAdManager.kt
...ain/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
+1
-13
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
View file @
6fe62a9c
...
...
@@ -8,8 +8,6 @@ import com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.TrackManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.presenters.TzVideoAdPresenter
import
com.mints.goodmoney.mvp.views.VideoAdManagerView
import
com.mints.goodmoney.utils.LogUtil
import
com.mints.goodmoney.utils.MD5
import
com.mints.library.utils.json.JsonUtil
...
...
@@ -27,11 +25,10 @@ private val TAG = ShVideoAdManager::class.java.simpleName
* 天卓珊瑚广告视频
*/
class
ShVideoAdManager
private
constructor
(
activity
:
Activity
)
:
BaseVideoAd
(
activity
)
,
VideoAdManagerView
{
BaseVideoAd
(
activity
)
{
private
var
isClickScreen
:
Boolean
=
true
private
var
tzVideoAdPresenter
:
TzVideoAdPresenter
?
=
null
private
var
shVideoAdListener
:
ShVideoAdListener
?
=
null
private
lateinit
var
ps
:
AppPreferences
...
...
@@ -63,8 +60,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
private
fun
init
(
activity
:
Activity
)
{
this
.
activity
=
activity
ps
=
AppPreferences
(
activity
)
tzVideoAdPresenter
=
TzVideoAdPresenter
()
tzVideoAdPresenter
?.
attachView
(
this
)
}
override
fun
loadAd
(
activity
:
Activity
,
curCoin
:
Int
,
carrierType
:
String
,
extraId
:
String
?)
{
...
...
@@ -169,9 +164,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
override
fun
onVideoClosed
(
@Nullable
coralAD
:
CoralAD
?,
@Nullable
s
:
String
?):
Boolean
{
LogUtil
.
d
(
TAG
,
"onVideoClosed"
)
tzVideoAdPresenter
?.
reportAddCoinMsg
(
activity
,
getAdMapVO
(
carrierType
,
Constant
.
AD_SOURCE_SH
,
extraId
,
curCoin
))
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_SH
,
Constant
.
EVENT_TYPE_THREE
,
""
,
""
)
if
(
shVideoAdListener
!=
null
)
{
...
...
@@ -195,10 +187,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
}
override
fun
onDestroy
()
{
tzVideoAdPresenter
?.
let
{
it
.
dispose
()
it
.
detachView
()
}
activity
=
null
}
...
...
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