From 1303bdc9d88619f50621f670734d8ef8b8839ead Mon Sep 17 00:00:00 2001 From: Laky64 <35636667+Laky-64@users.noreply.github.com> Date: Sat, 9 Jul 2022 17:37:57 +0200 Subject: [PATCH] Fixed Theme Parser When there are a space on the theme, this will cause some problems with the parser --- .../src/main/java/org/telegram/ui/ActionBar/Theme.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java index 5619f0a53..add506371 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java @@ -8391,12 +8391,12 @@ public class Theme { int value; if (param.length() > 0 && param.charAt(0) == '#') { try { - value = Color.parseColor(param); + value = Color.parseColor(param.trim()); } catch (Exception ignore) { - value = Utilities.parseInt(param); + value = Utilities.parseInt(param.trim()); } } else { - value = Utilities.parseInt(param); + value = Utilities.parseInt(param.trim()); } stringMap.put(key, value); }