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
7f9289e1
Commit
7f9289e1
authored
Jul 20, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
2674a7aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
LocalVedioManager.kt
...ain/java/com/xinfu/helivideo/manager/LocalVedioManager.kt
+0
-1
TxVideoActivity.kt
...rc/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
+11
-4
TxVideoFragment.kt
...main/java/com/xinfu/helivideo/video/tx/TxVideoFragment.kt
+0
-2
No files found.
video/app/src/main/java/com/xinfu/helivideo/manager/LocalVedioManager.kt
View file @
7f9289e1
...
...
@@ -98,7 +98,6 @@ object LocalVedioManager {
if
(
isSplash
)
{
bundle
.
putBoolean
(
Constant
.
VEDIO_SPLASH
,
true
)
}
// readyGo(activity, VideoActivity::class.java, bundle)
readyGo
(
activity
,
TxVideoActivity
::
class
.
java
,
bundle
)
}
else
{
requestDrama
(
activity
,
data
,
isSplash
)
...
...
video/app/src/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
View file @
7f9289e1
...
...
@@ -30,7 +30,6 @@ import com.xinfu.helivideo.ui.widgets.VipCountDialog
import
com.xinfu.helivideo.video.tx.adapter.TxVideoAdapter
import
com.xinfu.library.utils.nodoubleclick.AntiShake
import
kotlinx.android.synthetic.main.activity_tx_video.*
import
kotlinx.android.synthetic.main.activity_vip.*
class
TxVideoActivity
:
BaseActivity
(),
View
.
OnClickListener
,
VideoView
,
VideoEpisodeAdapter
.
OnEpisodeClickListener
,
TxVideoAdapter
.
OnCustomChildClickListener
{
...
...
@@ -64,6 +63,11 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
isSplashEnter
=
extras
?.
getBoolean
(
Constant
.
VEDIO_SPLASH
,
false
)
==
true
mVedioBean
=
Gson
().
fromJson
(
json
,
VedioBean
::
class
.
java
)
orderTagsList
=
mVedioBean
?.
orderTags
if
(
isPlayNext
)
{
mVedioBean
?.
let
{
it
.
recommendIndex
=
it
.
recommendIndex
+
1
}
}
super
.
getBundleExtras
(
extras
)
}
...
...
@@ -155,10 +159,13 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
override
fun
getIndexListSuc
(
indexList
:
IndexList
)
{
// 处理推荐页跳转自动播放下一集逻辑
playIndex
=
if
(
isPlayNext
)
{
mVedioBean
!!
.
recommendIndex
-
1
if
(
isPlayNext
)
{
playIndex
=
mVedioBean
!!
.
recommendIndex
-
1
if
(
playIndex
>=
mVedioBean
!!
.
unlockIndex
-
1
)
{
playIndex
=
mVedioBean
!!
.
unlockIndex
-
1
}
}
else
{
mVedioBean
!!
.
seeIndex
-
1
playIndex
=
mVedioBean
!!
.
seeIndex
-
1
}
if
(
playIndex
>
mVedioBean
!!
.
vedioTotal
)
playIndex
=
0
...
...
video/app/src/main/java/com/xinfu/helivideo/video/tx/TxVideoFragment.kt
View file @
7f9289e1
...
...
@@ -46,7 +46,6 @@ class TxVideoFragment : BaseFragment(), RecommendView {
recommendPresenter
.
autoList
()
}
recommend_view
.
setOnVideoEndListener
{
videos
[
recommend_view
.
currentPosition
].
recommendIndex
++
LocalVedioManager
.
startVedioDetailActivityForType
(
requireActivity
(),
videos
[
recommend_view
.
currentPosition
],
...
...
@@ -58,7 +57,6 @@ class TxVideoFragment : BaseFragment(), RecommendView {
override
fun
onCustomChildClick
(
view
:
View
,
position
:
Int
)
{
when
(
view
.
id
)
{
R
.
id
.
ll_bottom
->
{
videos
[
position
].
recommendIndex
++
LocalVedioManager
.
startVedioDetailActivityForType
(
requireActivity
(),
videos
[
position
],
...
...
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