This commit is contained in:
Austin Huang 2021-02-27 18:30:45 -05:00
parent 605ddd3635
commit bd802a9759
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

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