mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 00:27:30 +00:00
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;
|
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED) return;
|
||||||
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
|
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
|
||||||
});
|
});
|
||||||
if (TextUtils.isEmpty(feedModel.getCaptionId()))
|
if (TextUtils.isEmpty(feedModel.getCaptionId()) || TextUtils.isEmpty(feedModel.getPostCaption()))
|
||||||
binding.translateTitle.setVisibility(View.GONE);
|
binding.translateTitle.setVisibility(View.GONE);
|
||||||
else binding.translateTitle.setOnClickListener(v -> {
|
else binding.translateTitle.setOnClickListener(v -> {
|
||||||
mediaService.translate(feedModel.getCaptionId(), "1", new ServiceCallback<String>() {
|
mediaService.translate(feedModel.getCaptionId(), "1", new ServiceCallback<String>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user