commit | cea5e20817a848367e82e69b00d091c8405c99fc | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Wed Sep 16 15:41:48 2015 +0100 |
committer | Chris Banes <chrisbanes@google.com> | Wed Sep 16 16:03:58 2015 +0100 |
tree | 3f70a5cde7a18c53296942a5c3561c06cd9145c1 | |
parent | 37430e835e22a791b83b01befab44ead852bf555 [diff] |
Fix dependency sorting in CoordinatorLayout For our purposes we need every view to be compared against each other when sorting. Collections.sort() is stable and efficient, and thus doesn't guarantee that, therefore we now need to use a selection sort which does guarantee that. It is less efficient, but it is much better than removing all of the sorting and doing a O(N^2) loop in every draw. BUG: 24126029 Change-Id: Ida34244d62b9c7519b4cded3ab23bef95a01f1f0