diff options
| author | Steve McKay <smckay@google.com> | 2015-06-11 10:10:49 -0700 |
|---|---|---|
| committer | Steve McKay <smckay@google.com> | 2015-07-21 17:30:32 -0700 |
| commit | 4b3a13c1d05115a197ccddcee7da1f48dcd460f3 (patch) | |
| tree | e08b870c2bdb95b1c10fe178fd6366379a095b86 /core/java/android/util/SparseBooleanArray.java | |
| parent | 4dc07b4d890baf8d9548b52e58a00ddfaca08a15 (diff) | |
Update DirectoryFragment to use RecyclerView.
Add MultiSelectMaanger class to manager selection on a RecyclerView instance.
There are several outstanding issues that still need to be addressed
surrounding Grid mode as the GridLayout manager doesn't support
automatic column count calculation.
Also, we're missing the puddle effect on touch...
And probably other stuff. But it all *mostly* works.
Oh, also. Footers are currently commented out.
Add traditional unit tests for MultiSelectManager.
BUG: 22225617
Change-Id: I3cd26a10683f42053556d463a5d2f0d2a0bbde84
Diffstat (limited to 'core/java/android/util/SparseBooleanArray.java')
| -rw-r--r-- | core/java/android/util/SparseBooleanArray.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/util/SparseBooleanArray.java b/core/java/android/util/SparseBooleanArray.java index e293b1f652cd..8fd8226da6ac 100644 --- a/core/java/android/util/SparseBooleanArray.java +++ b/core/java/android/util/SparseBooleanArray.java @@ -185,6 +185,11 @@ public class SparseBooleanArray implements Cloneable { mValues[index] = value; } + /** @hide */ + public void setKeyAt(int index, int key) { + mKeys[index] = key; + } + /** * Returns the index for which {@link #keyAt} would return the * specified key, or a negative number if the specified |
