mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
Merge branch 'master' of github.com:iBotPeaches/brut.apktool
This commit is contained in:
commit
f53a296ded
7
apktool-lib/src/main/java/brut/androlib/res/data/ResResSpec.java
Normal file → Executable file
7
apktool-lib/src/main/java/brut/androlib/res/data/ResResSpec.java
Normal file → Executable file
@ -18,6 +18,8 @@ package brut.androlib.res.data;
|
|||||||
|
|
||||||
import brut.androlib.AndrolibException;
|
import brut.androlib.AndrolibException;
|
||||||
import brut.androlib.err.UndefinedResObject;
|
import brut.androlib.err.UndefinedResObject;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,7 +95,7 @@ public class ResResSpec {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return mName;
|
return StringUtils.replace(mName, "\"", "q");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResPackage getPackage() {
|
public ResPackage getPackage() {
|
||||||
@ -113,8 +115,7 @@ public class ResResSpec {
|
|||||||
throws AndrolibException {
|
throws AndrolibException {
|
||||||
ResConfigFlags flags = res.getConfig().getFlags();
|
ResConfigFlags flags = res.getConfig().getFlags();
|
||||||
if (mResources.put(flags, res) != null && ! overwrite) {
|
if (mResources.put(flags, res) != null && ! overwrite) {
|
||||||
throw new AndrolibException(String.format(
|
throw new AndrolibException(String.format("Multiple resources: spec=%s, config=%s", this, flags));
|
||||||
"Multiple resources: spec=%s, config=%s", this, flags));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user