apparently no caption id doesn't mean no caption
This commit is contained in:
parent
11a180d8f3
commit
0ec9e02e2a
@ -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>() {
|
||||
|
Loading…
Reference in New Issue
Block a user