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
4637c22f
Commit
4637c22f
authored
Feb 24, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑优化
parent
78ff32eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
DrawNativeVideoActivity.kt
...m/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
+4
-3
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+1
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+1
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
View file @
4637c22f
...
@@ -439,17 +439,18 @@ class DrawNativeVideoActivity : BaseActivity(),
...
@@ -439,17 +439,18 @@ class DrawNativeVideoActivity : BaseActivity(),
}
}
override
fun
onRenderSuccess
(
p0
:
View
?,
p1
:
Float
,
p2
:
Float
)
{
override
fun
onRenderSuccess
(
p0
:
View
?,
p1
:
Float
,
p2
:
Float
)
{
var
index
=
drawDatas
.
size
/
AD_INSERT_INDEX
+
mAdPage
*
AD_INSERT_INDEX
// 数据源每次刷新添加3个视频加1个广告 则需+1
var
index
=
drawDatas
.
size
/
(
AD_INSERT_INDEX
+
1
)
+
mAdPage
*
AD_INSERT_INDEX
if
(
index
==
0
)
{
if
(
index
==
0
)
{
index
++
index
++
}
}
drawDatas
.
add
(
index
,
DrawVideoBean
(
TYPE_AD_ITEM
,
ad
,
""
,
""
,
""
))
drawDatas
.
add
(
index
,
DrawVideoBean
(
TYPE_AD_ITEM
,
ad
,
""
,
""
,
""
))
mAdPage
++
// 列表只展示当前数据
// 列表只展示当前数据
mDrawVideoAdapter
?.
notifyItemInserted
(
mCurrentPlayIndex
+
1
)
mDrawVideoAdapter
?.
notifyItemInserted
(
mCurrentPlayIndex
+
1
)
mAdPage
++
}
}
})
})
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
4637c22f
...
@@ -652,7 +652,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -652,7 +652,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
mRedBoxTimer
?.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
mRedBoxTimer
?.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
if
(
isAdded
&&
!
requireActivity
().
isFinishing
)
{
if
(
isAdded
&&
!
requireActivity
().
isFinishing
)
{
stopRedbox
()
//
stopRedbox()
tv_fragment_main_redbox
.
text
=
TimeRender
.
ms2MS
(
millisUntilFinished
.
toInt
())
tv_fragment_main_redbox
.
text
=
TimeRender
.
ms2MS
(
millisUntilFinished
.
toInt
())
}
}
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
4637c22f
...
@@ -762,8 +762,7 @@ class MyFragment : BaseFragment(),
...
@@ -762,8 +762,7 @@ class MyFragment : BaseFragment(),
}
}
R
.
id
.
iv_right_icon2
->
{
R
.
id
.
iv_right_icon2
->
{
// 跳转QQ客服
// 跳转QQ客服
// jumpQQGroup()
jumpQQGroup
()
readyGo
(
DrawNativeVideoActivity
::
class
.
java
)
}
}
R
.
id
.
item_customer_service
->
{
R
.
id
.
item_customer_service
->
{
// 跳转加入QQ群
// 跳转加入QQ群
...
...
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