fix current language getting overwritten

This commit is contained in:
sk 2023-01-23 16:57:56 +01:00
parent a37fb33a68
commit c0ee16cf08
1 changed files with 2 additions and 1 deletions

View File

@ -826,7 +826,8 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
btn.setOnClickListener(v->languagePopup.show());
Preferences prefs = AccountSessionManager.getInstance().getAccount(accountID).preferences;
updateLanguage(prefs != null && prefs.postingDefaultLanguage != null && prefs.postingDefaultLanguage.length() > 0
if (language != null) updateLanguage(language);
else updateLanguage(prefs != null && prefs.postingDefaultLanguage != null && prefs.postingDefaultLanguage.length() > 0
? languageResolver.from(prefs.postingDefaultLanguage)
: languageResolver.getDefault());