Batch deletion
Also: when re-opening the Activity from the launcher, clear the
mIsInSelectionMode variable in memory.
Bug: 19549465
Change-Id: If589983d3d84c9c18066da08f9879c22db1a75ed
diff --git a/src/com/android/contacts/list/MultiSelectContactsListFragment.java b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
index 5e17aee..9716ae0 100644
--- a/src/com/android/contacts/list/MultiSelectContactsListFragment.java
+++ b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
@@ -92,9 +92,14 @@
public void displayCheckBoxes(boolean displayCheckBoxes) {
getAdapter().setDisplayCheckBoxes(displayCheckBoxes);
if (!displayCheckBoxes) {
- getAdapter().setSelectedContactIds(new TreeSet<Long>());
+ clearCheckBoxes();
}
}
+
+ public void clearCheckBoxes() {
+ getAdapter().setSelectedContactIds(new TreeSet<Long>());
+ }
+
@Override
protected boolean onItemLongClick(int position, long id) {
final MultiSelectEntryContactListAdapter adapter = getAdapter();