>
> Assuming that by "when the ActionMode is destroyed" you mean when the
>
user clicks the Done button, I have seen that same issue and I have
> not determined yet how to get past it.
>
> For cases where you finish() the action mode, you can call
> clearChoices() in onDestroyActionMode(). However, the Done button does
> not seem to invoke onDestroyActionMode() in the testing I have done to
> date.
>

For me the onDestroyActionMode() is called when you click on the Done 
button. But I've discovered that after a clearChoices() you must call a 
requestLayout() on the list. But, as the layout isn't done immediatly and as 
I've set the list with CHOICE_MODE_NONE just after the clearChoices(), when 
the layout is done the listview doesn't refresh the selection state because 
it's no more configure to have one ...If I don't set CHOICE_MODE_NONE in the 
onDestroyActionMode() but only clearChoices() and requestLayout(), then it's 
works, selections states are reseted but the user can still selects items 
... 

I really don't know what to do ...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to