Skip to content

Commit

Permalink
Merge pull request #25 from kanyun-inc/fix/innerClass
Browse files Browse the repository at this point in the history
MOD: Compatible with inner class type tag
  • Loading branch information
RicardoJiang authored Feb 8, 2023
2 parents 549de19 + 8b05077 commit a54cc52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ internal fun parseXml(saxParser: SAXParser, file: File, logger: Logger): List<La
saxParser.parse(
inputStream,
AndroidXmlHandler { id, tag ->
val resource = parseAndroidResource(id, tag)
val safeTag = tag.replace("$", ".")
val resource = parseAndroidResource(id, safeTag)
if (resource is AndroidResource.Widget) {
list.add(LayoutNodeItem(resource.id, resource.xmlType))
}
Expand Down

0 comments on commit a54cc52

Please sign in to comment.