Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
2440a43c
Commit
2440a43c
authored
Dec 05, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
5c301db8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
TxVideoActivity.kt
...java/com/duben/infinitefunjia/video/tx/TxVideoActivity.kt
+11
-6
NewTxVideoActivity.kt
...nfinitefunjia/video/tx/newrecommend/NewTxVideoActivity.kt
+2
-1
No files found.
video/app/src/main/java/com/duben/infinitefunjia/video/tx/TxVideoActivity.kt
View file @
2440a43c
...
...
@@ -90,10 +90,13 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
// 首次进来不是vip,且后续开通vip
if
(
mVipFlag
!=
UserManager
.
getInstance
().
vipFlag
&&
UserManager
.
getInstance
().
vipFlag
)
{
// 重置状态
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
isPlayNext
=
false
playIndex
=
afterOpenVipVedioPosition
-
1
super_short_video_view
.
onItemClick
(
playIndex
)
mVedioBean
?.
let
{
videoPresenter
.
getIndexList
(
""
+
it
.
vedioId
)
}
},
100
)
}
// vip界面返回弹出广告弹窗
...
...
@@ -136,10 +139,11 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
super_short_video_view
.
setOnCustomChildClickListener
(
this
)
super_short_video_view
.
setOnPageChangeListener
{
afterOpenVipVedioPosition
=
it
if
(
super_short_video_view
.
isAdPosition
(
it
)
||
super_short_video_view
.
isLuckPosition
(
it
))
{
if
(!
UserManager
.
getInstance
().
vipFlag
)
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
afterOpenVipVedioPosition
=
it
val
bundle
=
Bundle
()
bundle
.
putString
(
VipForDialogActivity
.
VEDIO_ID
,
...
...
@@ -300,13 +304,14 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
}
override
fun
onEpisodeClick
(
position
:
Int
)
{
afterOpenVipVedioPosition
=
position
dialog
?.
dismiss
()
val
data
=
super_short_video_view
.
data
if
(
position
>=
mVedioBean
!!
.
unlockIndex
)
{
if
(!
UserManager
.
getInstance
().
vipFlag
)
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
afterOpenVipVedioPosition
=
position
val
bundle
=
Bundle
()
bundle
.
putString
(
VipForDialogActivity
.
VEDIO_ID
,
...
...
video/app/src/main/java/com/duben/infinitefunjia/video/tx/newrecommend/NewTxVideoActivity.kt
View file @
2440a43c
...
...
@@ -132,11 +132,12 @@ class NewTxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
new_super_short_video_view
.
setOnCustomChildClickListener
(
this
)
new_super_short_video_view
.
setOnPageChangeListener
{
afterOpenVipVedioPosition
=
it
if
(
new_super_short_video_view
.
isAdPosition
(
it
)
||
new_super_short_video_view
.
isLuckPosition
(
it
)
)
{
afterOpenVipVedioPosition
=
it
if
(!
UserManager
.
getInstance
().
vipFlag
)
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
val
bundle
=
Bundle
()
...
...
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