apparently no caption id doesn't mean no caption

This commit is contained in:
Austin Huang 2020-12-22 18:03:23 -05:00
parent 11a180d8f3
commit 0ec9e02e2a
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -751,7 +751,7 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment {
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED) return;
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
});
if (TextUtils.isEmpty(feedModel.getCaptionId()))
if (TextUtils.isEmpty(feedModel.getCaptionId()) || TextUtils.isEmpty(feedModel.getPostCaption()))
binding.translateTitle.setVisibility(View.GONE);
else binding.translateTitle.setOnClickListener(v -> {
mediaService.translate(feedModel.getCaptionId(), "1", new ServiceCallback<String>() {