/** * Checks if the replacement was properly made to a node. * * @param file File we are searching for value * @param saved boolean on whether we need to save * @param provider Node we are attempting to replace * @return boolean * @throws AndrolibException setting node value failed */ private static boolean isSaved(File file, boolean saved, Node provider) throws AndrolibException { String reference = provider.getNodeValue(); String replacement = pullValueFromStrings(file.getParentFile(), reference); if (replacement != null) { provider.setNodeValue(replacement); saved = true; } return saved; }
private void putVersionInfo(MetaInfo meta) throws AndrolibException { VersionInfo info = getResTable().getVersionInfo(); String refValue = ResXmlPatcher.pullValueFromStrings(mOutDir, info.versionName); if (refValue != null) { info.versionName = refValue; } meta.versionInfo = info; }
private void putVersionInfo(MetaInfo meta) throws AndrolibException { VersionInfo info = getResTable().getVersionInfo(); String refValue = ResXmlPatcher.pullValueFromStrings(mOutDir, info.versionName); if (refValue != null) { info.versionName = refValue; } meta.versionInfo = info; }