OSDN Git Service

Fix various band select instabilities.
authorBen Kwa <kenobi@google.com>
Tue, 22 Dec 2015 23:27:14 +0000 (15:27 -0800)
committerBen Kwa <kenobi@google.com>
Tue, 22 Dec 2015 23:27:14 +0000 (15:27 -0800)
commit20887030e8c6105c97286653244d5c3801324194
tree9f4477260d9ececd8d516a1346541864d7e56be0
parentf8a51f6fcbec4dbc61bab3c5a06cd62971a4df43
Fix various band select instabilities.

- Guard against OutOfBoundsExceptions by checking for
  RecyclerView.NO_POSITION before attempting to retrieve model IDs in
  various places.

- Fix a spot where the default return value of
  SparseIntArray.get (i.e. 0) was causing item 0 to incorrectly get
  selected.

BUGS=26249027,26309874

Change-Id: I08d2e8c90bdd40a4738bdcf357de31e8fe6ddecf
packages/DocumentsUI/src/com/android/documentsui/dirlist/MultiSelectManager.java