No issue: minimize Button...Detector violation location.

This changes the error highlighting from being the entire contents of
<Button ...> to just the first line of <Button>.
pull/216/head
Michael Comella 4 years ago committed by ekager
parent e3fc2626b2
commit 1cc2ecdc7c

@ -58,7 +58,7 @@ class ButtonStyleXmlDetector : ResourceXmlDetector() {
context.report( context.report(
issue = ISSUE_XML_STYLE, issue = ISSUE_XML_STYLE,
scope = element, scope = element,
location = context.getLocation(element), location = context.getElementLocation(element),
message = ERROR_MESSAGE message = ERROR_MESSAGE
) )
} }

Loading…
Cancel
Save