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:
parent
638209cc13
commit
9563df0574
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue