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); }