mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 10:05:54 +01:00
If passed string isn't a reference, don't look for it.
This commit is contained in:
parent
5d405fa842
commit
14589e3593
@ -125,6 +125,10 @@ public final class ResXmlPatcher {
|
||||
* @throws AndrolibException
|
||||
*/
|
||||
public static String pullValueFromStrings(File directory, String key) throws AndrolibException {
|
||||
if (! key.contains("@")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
File file = new File(directory, "/res/values/strings.xml");
|
||||
key = key.replace("@string/", "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user