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
a7c3260f
Commit
a7c3260f
authored
Jul 18, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
846893bd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
DramaTabFragment.kt
...c/main/java/com/xinfu/helivideo/video/DramaTabFragment.kt
+6
-1
RecommendVideoView.java
...java/com/xinfu/helivideo/video/tx/RecommendVideoView.java
+0
-5
SuperShortVideoView.java
...ava/com/xinfu/helivideo/video/tx/SuperShortVideoView.java
+2
-0
TXVideoBaseView.java
...in/java/com/xinfu/helivideo/video/tx/TXVideoBaseView.java
+0
-1
No files found.
video/app/src/main/java/com/xinfu/helivideo/video/DramaTabFragment.kt
View file @
a7c3260f
...
@@ -96,12 +96,17 @@ class DramaTabFragment : BaseFragment(), VideoView {
...
@@ -96,12 +96,17 @@ class DramaTabFragment : BaseFragment(), VideoView {
super
.
onResume
()
super
.
onResume
()
Log
.
d
(
TAG
,
"onResume"
)
Log
.
d
(
TAG
,
"onResume"
)
dpWidget
?.
fragment
?.
onResume
()
dpWidget
?.
fragment
?.
onResume
()
dpWidget
?.
fragment
?.
userVisibleHint
=
true
}
}
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
Log
.
d
(
TAG
,
"onPause"
)
Log
.
d
(
TAG
,
"onPause"
)
dpWidget
?.
fragment
?.
onPause
()
dpWidget
?.
fragment
?.
onPause
()
dpWidget
?.
fragment
?.
userVisibleHint
=
false
}
}
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
...
@@ -111,7 +116,7 @@ class DramaTabFragment : BaseFragment(), VideoView {
...
@@ -111,7 +116,7 @@ class DramaTabFragment : BaseFragment(), VideoView {
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
)
super
.
setUserVisibleHint
(
isVisibleToUser
)
dpWidget
?.
fragment
?.
userVisibleHint
=
isVisibleToUser
//
dpWidget?.fragment?.userVisibleHint = isVisibleToUser
}
}
private
var
dramaListener
:
IDPDramaListener
=
object
:
IDPDramaListener
()
{
private
var
dramaListener
:
IDPDramaListener
=
object
:
IDPDramaListener
()
{
...
...
video/app/src/main/java/com/xinfu/helivideo/video/tx/RecommendVideoView.java
View file @
a7c3260f
...
@@ -118,11 +118,6 @@ public class RecommendVideoView extends RelativeLayout {
...
@@ -118,11 +118,6 @@ public class RecommendVideoView extends RelativeLayout {
private
void
onPageSelectedMethod
(
int
position
)
{
private
void
onPageSelectedMethod
(
int
position
)
{
if
(
mOnPageChangeListener
!=
null
)
mOnPageChangeListener
.
onPageChange
(
position
);
if
(
mOnPageChangeListener
!=
null
)
mOnPageChangeListener
.
onPageChange
(
position
);
if
(
mBaseItemView
!=
null
)
{
mBaseItemView
.
pausePlayer
();
}
if
(
position
==
mUrlList
.
size
())
return
;
if
(
mLastPositionInIDLE
!=
position
)
{
if
(
mLastPositionInIDLE
!=
position
)
{
View
view
=
mSnapHelper
.
findSnapView
(
mLayoutManager
);
View
view
=
mSnapHelper
.
findSnapView
(
mLayoutManager
);
if
(
view
==
null
)
{
if
(
view
==
null
)
{
...
...
video/app/src/main/java/com/xinfu/helivideo/video/tx/SuperShortVideoView.java
View file @
a7c3260f
...
@@ -143,6 +143,8 @@ public class SuperShortVideoView extends RelativeLayout {
...
@@ -143,6 +143,8 @@ public class SuperShortVideoView extends RelativeLayout {
if
(
mOnPageChangeListener
!=
null
)
mOnPageChangeListener
.
onPageChange
(
position
);
if
(
mOnPageChangeListener
!=
null
)
mOnPageChangeListener
.
onPageChange
(
position
);
if
(
position
==
mUrlList
.
size
())
{
if
(
position
==
mUrlList
.
size
())
{
mLastPositionInIDLE
=
position
;
mBaseItemView
.
stopForPlaying
();
return
;
return
;
}
}
...
...
video/app/src/main/java/com/xinfu/helivideo/video/tx/TXVideoBaseView.java
View file @
a7c3260f
...
@@ -244,7 +244,6 @@ public class TXVideoBaseView extends RelativeLayout implements View.OnClickListe
...
@@ -244,7 +244,6 @@ public class TXVideoBaseView extends RelativeLayout implements View.OnClickListe
@Override
@Override
public
void
onProgress
(
Bundle
bundle
)
{
public
void
onProgress
(
Bundle
bundle
)
{
mIvCover
.
setVisibility
(
GONE
);
handlePlayProgress
(
bundle
);
handlePlayProgress
(
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