Browse Source
allow anon viewing of comments
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
2 changed files with
2 additions and
5 deletions
-
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
-
app/src/main/res/layout/fragment_comments.xml
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
@ -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" |
|
|
|