mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +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;
|
int value;
|
||||||
if (param.length() > 0 && param.charAt(0) == '#') {
|
if (param.length() > 0 && param.charAt(0) == '#') {
|
||||||
try {
|
try {
|
||||||
value = Color.parseColor(param);
|
value = Color.parseColor(param.trim());
|
||||||
} catch (Exception ignore) {
|
} catch (Exception ignore) {
|
||||||
value = Utilities.parseInt(param);
|
value = Utilities.parseInt(param.trim());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
value = Utilities.parseInt(param);
|
value = Utilities.parseInt(param.trim());
|
||||||
}
|
}
|
||||||
stringMap.put(key, value);
|
stringMap.put(key, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue