From bd802a97599cf5c276826eaa2f4e87b7417e625a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 27 Feb 2021 18:30:45 -0500 Subject: [PATCH] close #748 --- .../java/awais/instagrabber/fragments/PostViewV2Fragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java index 74bee61d..3111584d 100644 --- a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java @@ -817,7 +817,7 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im } private void setupCaption(final Caption caption) { - if (caption == null) { + if (caption == null || TextUtils.isEmpty(caption.getText())) { binding.caption.setVisibility(View.GONE); binding.translate.setVisibility(View.GONE); binding.captionToggle.setVisibility(View.GONE);