From d2be917bd459417c23467e21e94651d0247d9abf Mon Sep 17 00:00:00 2001 From: sk Date: Tue, 27 Dec 2022 22:00:19 +0100 Subject: [PATCH] fix akkoma crash on edit --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 2ab46e523..704756cf2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -681,7 +681,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr } private void updateLanguage(String lang) { - updateLanguage(languageResolver.from(lang)); + updateLanguage(lang == null ? languageResolver.getDefault() : languageResolver.from(lang)); } private void updateLanguage(MastodonLanguage loc) {