mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
Fixed Theme Parser
When there are a space on the theme, this will cause some problems with the parser
This commit is contained in:
parent
6cb1cdf898
commit
1303bdc9d8
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue