clearChoices when setting AbsListView adapters.
This allows us to reset mCheckedItemCount to 0 to match the clearing of check states. Bug: 63559021 Fixes: 63559021 Test: Added test to AbsListViewTest. Change-Id: I47a0fbc25448addf75a3f7e5a282bb98360200dd
This commit is contained in:
@@ -913,14 +913,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
mCheckedIdStates = new LongSparseArray<Integer>();
|
||||
}
|
||||
}
|
||||
|
||||
if (mCheckStates != null) {
|
||||
mCheckStates.clear();
|
||||
}
|
||||
|
||||
if (mCheckedIdStates != null) {
|
||||
mCheckedIdStates.clear();
|
||||
}
|
||||
clearChoices();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user