This commit is contained in:
Thomas 2020-10-21 18:43:56 +02:00
parent 7be0f72292
commit 0f995cc615
1 changed files with 7 additions and 1 deletions

View File

@ -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));