Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
a4a8b05e
Commit
a4a8b05e
authored
Mar 14, 2019
by
tRuNKator
Committed by
skylot
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: replace dot character with underscore in style resource name (PR #466)
parent
6116a750
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
AndroidResourcesUtils.java
...n/java/jadx/core/utils/android/AndroidResourcesUtils.java
+8
-2
No files found.
jadx-core/src/main/java/jadx/core/utils/android/AndroidResourcesUtils.java
View file @
a4a8b05e
...
...
@@ -99,11 +99,17 @@ public class AndroidResourcesUtils {
}
}
for
(
ResourceEntry
resource
:
resStorage
.
getResources
())
{
final
String
resTypeName
=
resource
.
getTypeName
();
ClassNode
typeCls
=
innerClsMap
.
computeIfAbsent
(
res
ource
.
getTypeName
()
,
res
TypeName
,
name
->
addClassForResType
(
resCls
,
rClsExists
,
name
)
);
String
resName
=
resource
.
getKeyName
();
final
String
resName
;
if
(
"style"
.
equals
(
resTypeName
))
{
resName
=
resource
.
getKeyName
().
replace
(
'.'
,
'_'
);
}
else
{
resName
=
resource
.
getKeyName
();
}
FieldNode
rField
=
typeCls
.
searchFieldByName
(
resName
);
if
(
rField
==
null
)
{
FieldInfo
rFieldInfo
=
FieldInfo
.
from
(
typeCls
.
dex
(),
typeCls
.
getClassInfo
(),
resName
,
ArgType
.
INT
);
...
...
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