mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-02-16 12:00:42 +01:00
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) {
|
if (b != null) {
|
||||||
peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this));
|
peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this));
|
||||||
videoUuid = b.getString("video_uuid", null);
|
videoUuid = b.getString("video_uuid", null);
|
||||||
|
if( comments != null && comments.size() > 0) {
|
||||||
|
int number = comments.size();
|
||||||
|
comments.clear();
|
||||||
|
commentListAdapter.notifyItemRangeRemoved(0, number);
|
||||||
|
}
|
||||||
playVideo();
|
playVideo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -547,8 +552,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||||||
binding.writeCommentContainerReply.setVisibility(View.VISIBLE);
|
binding.writeCommentContainerReply.setVisibility(View.VISIBLE);
|
||||||
binding.writeCommentContainer.setVisibility(View.VISIBLE);
|
binding.writeCommentContainer.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
binding.peertubeComments.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
binding.peertubeComments.setVisibility(View.GONE);
|
||||||
binding.writeCommentContainerReply.setVisibility(View.GONE);
|
binding.writeCommentContainerReply.setVisibility(View.GONE);
|
||||||
binding.writeCommentContainer.setVisibility(View.GONE);
|
binding.writeCommentContainer.setVisibility(View.GONE);
|
||||||
binding.noActionText.setText(getString(R.string.comment_no_allowed_peertube));
|
binding.noActionText.setText(getString(R.string.comment_no_allowed_peertube));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user