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
d7b47a52
Commit
d7b47a52
authored
Jul 19, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0f079764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
DramaApiDetailActivity.kt
.../java/com/xinfu/helivideo/video/DramaApiDetailActivity.kt
+3
-0
TxVideoActivity.kt
...rc/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
+3
-1
No files found.
video/app/src/main/java/com/xinfu/helivideo/video/DramaApiDetailActivity.kt
View file @
d7b47a52
...
...
@@ -64,6 +64,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
private
var
isInited
=
false
private
var
drama
:
DPDrama
?
=
null
private
var
tipList
:
ArrayList
<
String
>?
=
null
private
var
orderTagsList
:
ArrayList
<
String
>?
=
null
private
var
mInitUnlockIndex
=
0
...
...
@@ -103,6 +104,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
isPlayNext
=
extras
?.
getBoolean
(
Constant
.
VEDIO_NEXT
,
false
)
==
true
mVedioBean
=
Gson
().
fromJson
(
json
,
VedioBean
::
class
.
java
)
orderTagsList
=
mVedioBean
?.
orderTags
freeSet
=
mVedioBean
!!
.
unlockIndex
lockSet
=
if
(
mVedioBean
!!
.
adGiveVedioNum
==
0
)
1
else
mVedioBean
!!
.
adGiveVedioNum
...
...
@@ -359,6 +361,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
blockView
?.
visibility
=
View
.
GONE
}
mVedioBean
!!
.
seeIndex
=
index
mVedioBean
!!
.
orderTags
=
orderTagsList
LocalVedioManager
.
commitVedio
(
mVedioBean
!!
)
showVipCountDialog
(
index
-
1
)
...
...
video/app/src/main/java/com/xinfu/helivideo/video/TxVideoActivity.kt
View file @
d7b47a52
...
...
@@ -40,6 +40,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
private
var
mVedioBean
:
VedioBean
?
=
null
private
var
indexBean
:
IndexList
?
=
null
private
var
tipList
:
ArrayList
<
String
>?
=
null
private
var
orderTagsList
:
ArrayList
<
String
>?
=
null
private
var
isPlayNext
=
false
private
var
playIndex
=
1
...
...
@@ -56,7 +57,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
val
json
=
extras
?.
getString
(
Constant
.
VEDIO_BEAN
)
isPlayNext
=
extras
?.
getBoolean
(
Constant
.
VEDIO_NEXT
,
false
)
==
true
mVedioBean
=
Gson
().
fromJson
(
json
,
VedioBean
::
class
.
java
)
orderTagsList
=
mVedioBean
?.
orderTags
super
.
getBundleExtras
(
extras
)
}
...
...
@@ -93,6 +94,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
// VIdeoindex -> seeIndex
if
(
videos
.
size
>
it
)
{
mVedioBean
!!
.
seeIndex
=
videos
[
it
].
vedioIndex
mVedioBean
!!
.
orderTags
=
orderTagsList
LocalVedioManager
.
commitVedio
(
mVedioBean
!!
)
}
}
...
...
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