OSDN Git Service

Increase the stability of sorting in the Model.
authorBen Kwa <kenobi@google.com>
Fri, 8 Jan 2016 23:34:47 +0000 (15:34 -0800)
committerBen Kwa <kenobi@google.com>
Sat, 9 Jan 2016 00:59:20 +0000 (16:59 -0800)
commite2564f9f197f6398cf3f2b1310045b8f685fd85c
tree331b0dd3ef9479a14d71be007bce882b471a8680
parent2e79249795ab7b48afe255daaa056f9a03119c76
Increase the stability of sorting in the Model.

This is necessary to prevent UI thrash (items continually shuffling
around) when the underlying Provider doesn't return its contents in a
stable order from one load event to another (DownloadStorageProvider is
an example).

BUG=26417297

Change-Id: Ie99e56b610f5d01d5318be07c0379b506c828735
packages/DocumentsUI/src/com/android/documentsui/dirlist/Model.java
packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ModelTest.java