Making it appear in every post that isnt on the default language and that allows translation. Merge this as well @sk22, as its a rather useful thing

This commit is contained in:
LucasGGamerM 2022-12-20 19:22:42 -03:00
parent 638209cc13
commit 9563df0574
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
Instance instanceInfo = AccountSessionManager.getInstance().getInstanceInfo(item.session.domain);
boolean translateEnabled = instanceInfo.v2 != null && instanceInfo.v2.configuration.translation != null && instanceInfo.v2.configuration.translation.enabled;
translateWrap.setVisibility(item.textSelectable && translateEnabled &&
translateWrap.setVisibility(translateEnabled &&
!item.status.visibility.isLessVisibleThan(StatusPrivacy.UNLISTED) &&
(item.session.preferences == null || !item.status.language.equalsIgnoreCase(item.session.preferences.postingDefaultLanguage))
? View.VISIBLE : View.GONE);