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
78ff32eb
Commit
78ff32eb
authored
Feb 24, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
广告插入逻辑改变
parent
d207dc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
DrawNativeVideoActivity.kt
...m/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
+7
-4
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
View file @
78ff32eb
...
@@ -439,19 +439,22 @@ class DrawNativeVideoActivity : BaseActivity(),
...
@@ -439,19 +439,22 @@ class DrawNativeVideoActivity : BaseActivity(),
}
}
override
fun
onRenderSuccess
(
p0
:
View
?,
p1
:
Float
,
p2
:
Float
)
{
override
fun
onRenderSuccess
(
p0
:
View
?,
p1
:
Float
,
p2
:
Float
)
{
val
index
=
drawDatas
.
size
/
AD_INSERT_INDEX
+
mAdPage
*
AD_INSERT_INDEX
var
index
=
drawDatas
.
size
/
AD_INSERT_INDEX
+
mAdPage
*
AD_INSERT_INDEX
if
(
index
==
0
)
{
index
++
}
drawDatas
.
add
(
index
,
DrawVideoBean
(
TYPE_AD_ITEM
,
ad
,
""
,
""
,
""
))
drawDatas
.
add
(
index
,
DrawVideoBean
(
TYPE_AD_ITEM
,
ad
,
""
,
""
,
""
))
mAdPage
++
mAdPage
++
// 列表只展示当前数据
mDrawVideoAdapter
?.
notifyItemInserted
(
mCurrentPlayIndex
+
1
)
}
}
})
})
ad
.
render
()
ad
.
render
()
}
}
// 列表只展示当前数据
mDrawVideoAdapter
?.
notifyItemInserted
(
mCurrentPlayIndex
+
1
)
}
}
override
fun
getXfPageMsgSuc
(
data
:
KylBean
)
{
override
fun
getXfPageMsgSuc
(
data
:
KylBean
)
{
...
...
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