fix: telegram translator disapper in error dialog

Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
This commit is contained in:
Next Alone 2022-12-04 20:47:11 +08:00
parent 29dde75c8c
commit d88054f9dc
No known key found for this signature in database
GPG Key ID: DBA7B0AEF8C1CD2C

View File

@ -238,15 +238,18 @@ object AlertUtil {
val items = LinkedList<String>()
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, _ ->