commit | 95422be069897f419e7c6ca03eb21259540372d2 | [log] [tgz] |
---|---|---|
author | Jon Mann <jonmann@google.com> | Fri Feb 10 13:57:00 2017 -0800 |
committer | Jon Mann <jonmann@google.com> | Fri Feb 10 16:45:58 2017 -0800 |
tree | 468086a718998581ac95b27e1463d254b6fcfa04 | |
parent | 2669874037607bb1c1c5e42fa6371ac5498137a0 [diff] |
Prevent counting items more than once during multi-select. Test: Ran full test suite Bug: 35099635 Change-Id: I9b447297987150bbf8354d28edf518f297ee95f0
diff --git a/src/com/android/documentsui/selection/SelectionManager.java b/src/com/android/documentsui/selection/SelectionManager.java index d6fcaef..ed1758c 100644 --- a/src/com/android/documentsui/selection/SelectionManager.java +++ b/src/com/android/documentsui/selection/SelectionManager.java
@@ -500,7 +500,7 @@ } if (selected) { boolean canSelect = canSetState(id, true); - if (canSelect) { + if (canSelect && !mSelection.mSelection.contains(id)) { mSelection.mProvisionalSelection.add(id); } } else {