If passed string isn't a reference, don't look for it.

This commit is contained in:
Connor Tumbleson 2015-04-19 07:44:57 -05:00
parent 5d405fa842
commit 14589e3593

View File

@ -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/", "");