Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
1356d914
Commit
1356d914
authored
Mar 18, 2018
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
res: don't add colon for empty namespace (#231)
parent
fd2dc14e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
BinaryXMLParser.java
...-core/src/main/java/jadx/core/xmlgen/BinaryXMLParser.java
+7
-1
No files found.
jadx-core/src/main/java/jadx/core/xmlgen/BinaryXMLParser.java
View file @
1356d914
...
@@ -250,7 +250,13 @@ public class BinaryXMLParser extends CommonBinaryParser {
...
@@ -250,7 +250,13 @@ public class BinaryXMLParser extends CommonBinaryParser {
int
styleIndex
=
is
.
readInt16
();
int
styleIndex
=
is
.
readInt16
();
if
(
"manifest"
.
equals
(
currentTag
)
||
writer
.
getIndent
()
==
0
)
{
if
(
"manifest"
.
equals
(
currentTag
)
||
writer
.
getIndent
()
==
0
)
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
nsMap
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
nsMap
.
entrySet
())
{
writer
.
add
(
" xmlns:"
+
entry
.
getValue
()
+
"=\""
).
add
(
entry
.
getKey
()).
add
(
"\""
);
String
nsValue
=
entry
.
getValue
();
writer
.
add
(
" xmlns"
);
if
(
nsValue
!=
null
&&
!
nsValue
.
trim
().
isEmpty
())
{
writer
.
add
(
':'
);
writer
.
add
(
nsValue
);
}
writer
.
add
(
"=\""
).
add
(
entry
.
getKey
()).
add
(
"\""
);
}
}
}
}
boolean
attrNewLine
=
attributeCount
!=
1
&&
ATTR_NEW_LINE
;
boolean
attrNewLine
=
attributeCount
!=
1
&&
ATTR_NEW_LINE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment