Fix a bug where namespaces were not being added to the closing tags.
This bug manifested in the following way:
<manifest
xmlns:dist="http://schemas.android.com/apk/distribution"
...>
<dist:module>
...
</module>  <-- Bug (should be </dist:module>)
</manifest>
RELNOTES: None.
@@ -320,6 +320,10 @@ public class ProtoApk implements Closeable {
}
ANGLE_OPEN.writeTo(out);
FORWARD_SLASH.writeTo(out);
+ if (!element.getNamespaceUriBytes().isEmpty()) {
+ findNamespacePrefix(element.getNamespaceUriBytes()).writeTo(out);
+ COLON.writeTo(out);
+ }
name.writeTo(out);
ANGLE_CLOSE.writeTo(out);
}
