Browse Source

allow anon viewing of comments

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
387a56faf5
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 6
      app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
  2. 1
      app/src/main/res/layout/fragment_comments.xml

6
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java

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

1
app/src/main/res/layout/fragment_comments.xml

@ -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"

Loading…
Cancel
Save