mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
AndrolibResources.escapeForResXml(): fixed bug triggered when empty string given.
This commit is contained in:
parent
d35120da35
commit
8094115fbc
@ -279,6 +279,9 @@ final public class AndrolibResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String escapeForResXml(String value) {
|
public static String escapeForResXml(String value) {
|
||||||
|
if (value.isEmpty()) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
value = value.replace("'", "\\'");
|
value = value.replace("'", "\\'");
|
||||||
value = value.replace("\n", "\\n\n");
|
value = value.replace("\n", "\\n\n");
|
||||||
char c = value.charAt(0);
|
char c = value.charAt(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user