Skip to content

Commit

Permalink
Merge pull request #611 from siarhei-luskanau/sorted2
Browse files Browse the repository at this point in the history
Sort key order of ComposePrintToString to stabilize output in Dump screenshots.
  • Loading branch information
takahirom authored Dec 16, 2024
2 parents 297a715 + 897d9ab commit ad3eb0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private fun rectToShortString(rect: Rect): String {
private fun StringBuilder.appendConfigInfo(config: SemanticsConfiguration, indent: String = "") {
val actions = mutableListOf<String>()
val units = mutableListOf<String>()
for ((key, value) in config) {
for ((key, value) in config.sortedBy { it.key.name }) {
if (key == SemanticsProperties.TestTag) {
continue
}
Expand Down

0 comments on commit ad3eb0c

Please sign in to comment.