From d88054f9dcf38f8efdcc40de01e788fb63750508 Mon Sep 17 00:00:00 2001 From: Next Alone <12210746+NextAlone@users.noreply.github.com> Date: Sun, 4 Dec 2022 20:47:11 +0800 Subject: [PATCH] fix: telegram translator disapper in error dialog Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com> --- .../main/java/tw/nekomimi/nekogram/utils/AlertUtil.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/AlertUtil.kt b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/AlertUtil.kt index 0a70c700c..525da9f84 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/AlertUtil.kt +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/AlertUtil.kt @@ -238,15 +238,18 @@ object AlertUtil { val items = LinkedList() - items.addAll(arrayOf( + items.addAll( + arrayOf( LocaleController.getString("ProviderGoogleTranslate", R.string.ProviderGoogleTranslate), LocaleController.getString("ProviderGoogleTranslateCN", R.string.ProviderGoogleTranslateCN), LocaleController.getString("ProviderYandexTranslate", R.string.ProviderYandexTranslate), LocaleController.getString("ProviderLingocloud", R.string.ProviderLingocloud), LocaleController.getString("ProviderMicrosoftTranslator", R.string.ProviderMicrosoftTranslator), LocaleController.getString("ProviderYouDao", R.string.ProviderYouDao), - LocaleController.getString("ProviderDeepLTranslate", R.string.ProviderDeepLTranslate) - )) + LocaleController.getString("ProviderDeepLTranslate", R.string.ProviderDeepLTranslate), + LocaleController.getString("ProviderTelegram", R.string.ProviderTelegram) + ).toList() + ) popup.setItems(items.toTypedArray()) { item, _ ->