Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
dfa60527
Commit
dfa60527
authored
Dec 24, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复视频闪退的bug
parent
864652a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
JcvTrillVideo.java
...eo/src/main/java/com/xxrv/video/weight/JcvTrillVideo.java
+24
-22
layout_jcv_trill.xml
plugin_video/src/main/res/layout/layout_jcv_trill.xml
+1
-0
No files found.
plugin_video/src/main/java/com/xxrv/video/weight/JcvTrillVideo.java
View file @
dfa60527
...
...
@@ -34,6 +34,7 @@ import com.xxrv.video.activity.TriListActivity;
import
com.xxrv.video.adapter.CommentVideoAdapter
;
import
com.xxrv.video.api.VideoApi
;
import
com.xxrv.video.base.Proxy
;
import
com.xxrv.video.bean.circle.Comment
;
import
com.xxrv.video.bean.circle.DiscoveryDataBean
;
import
com.xxrv.video.bean.circle.VideoIMTokenBean
;
import
com.xxrv.video.dialog.TrillCommDialog
;
...
...
@@ -43,6 +44,7 @@ import com.yuyife.okgo.OkGoUtil;
import
java.lang.reflect.ParameterizedType
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Map
;
...
...
@@ -347,29 +349,29 @@ public class JcvTrillVideo extends FrameLayout implements BaseView, View.OnClick
tvAddress
.
setText
(
bean
.
getLocation
());
}
commentVideoAdapter
.
addData
(
bean
.
getComments
());
//
commentVideoAdapter.addData(bean.getComments());
//
List<Comment> comments = bean.getComments();
//
if (comments != null && comments.size() > 0) {
//
tvConmmentHint1.setVisibility(VISIBLE);
//
tvConmmentHint1.setText(comments.get(0).getBody());
//
} else {
//
tvConmmentHint1.setVisibility(GONE);
//
}
//
//
if (comments != null && comments.size() > 1) {
//
tvConmmentHint2.setVisibility(VISIBLE);
//
tvConmmentHint2.setText(comments.get(1).getBody());
//
} else {
//
tvConmmentHint2.setVisibility(GONE);
//
}
//
//
if (comments != null && comments.size() > 2) {
//
tvConmmentHint3.setVisibility(VISIBLE);
//
tvConmmentHint3.setText(comments.get(2).getBody());
//
} else {
//
tvConmmentHint3.setVisibility(GONE);
//
}
List
<
Comment
>
comments
=
bean
.
getComments
();
if
(
comments
!=
null
&&
comments
.
size
()
>
0
)
{
tvConmmentHint1
.
setVisibility
(
VISIBLE
);
tvConmmentHint1
.
setText
(
comments
.
get
(
0
).
getBody
());
}
else
{
tvConmmentHint1
.
setVisibility
(
GONE
);
}
if
(
comments
!=
null
&&
comments
.
size
()
>
1
)
{
tvConmmentHint2
.
setVisibility
(
VISIBLE
);
tvConmmentHint2
.
setText
(
comments
.
get
(
1
).
getBody
());
}
else
{
tvConmmentHint2
.
setVisibility
(
GONE
);
}
if
(
comments
!=
null
&&
comments
.
size
()
>
2
)
{
tvConmmentHint3
.
setVisibility
(
VISIBLE
);
tvConmmentHint3
.
setText
(
comments
.
get
(
2
).
getBody
());
}
else
{
tvConmmentHint3
.
setVisibility
(
GONE
);
}
}
@Override
...
...
plugin_video/src/main/res/layout/layout_jcv_trill.xml
View file @
dfa60527
...
...
@@ -203,6 +203,7 @@
<android.support.v7.widget.RecyclerView
android:id=
"@+id/rv_content"
android:visibility=
"gone"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_60"
/>
...
...
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