Fix issue #11
This commit is contained in:
parent
7be0f72292
commit
0f995cc615
|
@ -382,6 +382,11 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||
if (b != null) {
|
||||
peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this));
|
||||
videoUuid = b.getString("video_uuid", null);
|
||||
if( comments != null && comments.size() > 0) {
|
||||
int number = comments.size();
|
||||
comments.clear();
|
||||
commentListAdapter.notifyItemRangeRemoved(0, number);
|
||||
}
|
||||
playVideo();
|
||||
}
|
||||
}
|
||||
|
@ -547,8 +552,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||
binding.writeCommentContainerReply.setVisibility(View.VISIBLE);
|
||||
binding.writeCommentContainer.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
binding.peertubeComments.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
binding.peertubeComments.setVisibility(View.GONE);
|
||||
binding.writeCommentContainerReply.setVisibility(View.GONE);
|
||||
binding.writeCommentContainer.setVisibility(View.GONE);
|
||||
binding.noActionText.setText(getString(R.string.comment_no_allowed_peertube));
|
||||
|
|
Loading…
Reference in New Issue