Guest User

diff on ListView.setItemChecked in 1.6 and 2.1

a guest
Oct 20th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. 3267,3270c3306,3310
  2. < // Clear the old value: if something was selected and value == false
  3. < // then it is unselected
  4. < mCheckStates.clear();
  5. < // If value == true, select the appropriate position
  6. ---
  7. > // Clear all values if we're checking something, or unchecking the currently
  8. > // selected item
  9. > if (value || isItemChecked(position)) {
  10. > mCheckStates.clear();
  11. > }
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment