I have an app with a series of files in being shown via an Activity. Each
file has a checkbox.
If the user clicks any of the chedckboxes, I bring up the CAB menu for the
user to operate
on the file. My onClickListener starts things, and, I was hoping, could
dismiss the CAB if
the checkboxes are all unchecked.
private OnClickListener clickChange = new OnClickListener() {
public void onClick(View v) {
// check to see if SelectAll checkbox was selected
Boolean state = false;
/*
snip
*/
// Start the CAB using the ActionMode.Callback defined above if
anything is selected
if (anyChecked()) { //
mActionMode =
showFileActivity.this.startActionMode(mActionModeCallback);
}
else if (mActionMode != null) {
mActionMode = null;
}
}
};
Simply setting mActionMode to null won't clear the CAB. Any ideas on
what/how to dismiss the CAB
when the user has un-selected everything?
--
--
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.