From 65c365a15792d5bdc9c5550aa8e1fbbd774a9ca1 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Mon, 2 Nov 2020 11:13:28 +0100 Subject: [PATCH] Don't crash language selection just because we are in debug Change-Id: I429dfee9ad08bd2578a9e24d0662ad60cdd7c917 --- .../main/java/im/vector/app/features/settings/VectorLocale.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorLocale.kt b/vector/src/main/java/im/vector/app/features/settings/VectorLocale.kt index cff4ca0cb9..7d67946385 100644 --- a/vector/src/main/java/im/vector/app/features/settings/VectorLocale.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorLocale.kt @@ -174,7 +174,8 @@ object VectorLocale { .build() } catch (exception: IllformedLocaleException) { if (BuildConfig.DEBUG) { - throw exception + //throw exception + exception.printStackTrace() } // Ignore this locale in production null