allow anon viewing of comments

This commit is contained in:
Austin Huang 2020-11-13 17:29:17 -05:00
parent 4d16a94276
commit 387a56faf5
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
2 changed files with 2 additions and 5 deletions

View File

@ -421,10 +421,6 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment {
}
private void setupComment() {
if (!isLoggedIn) {
binding.comment.setVisibility(View.GONE);
return;
}
binding.comment.setOnClickListener(v -> {
final NavController navController = getNavController();
if (navController == null) return;
@ -1129,8 +1125,8 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment {
binding.captionToggle.setVisibility(View.VISIBLE);
binding.download.setVisibility(View.VISIBLE);
binding.share.setVisibility(View.VISIBLE);
binding.comment.setVisibility(View.VISIBLE);
if (isLoggedIn) {
binding.comment.setVisibility(View.VISIBLE);
binding.like.setVisibility(View.VISIBLE);
binding.save.setVisibility(View.VISIBLE);
}

View File

@ -26,6 +26,7 @@
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:hint="@string/comment_hint"
android:visibility="gone"
app:counterEnabled="true"
app:counterMaxLength="2200"
app:endIconDrawable="@drawable/ic_send_24"