Added clear button
This commit is contained in:
parent
6f1daa20ea
commit
9b407d2c94
3 changed files with 9 additions and 0 deletions
|
|
@ -78,6 +78,11 @@ public class EditActivity extends ListActivity implements AdapterView.OnItemClic
|
|||
selector.show(getFragmentManager(), "behaviour_selector");
|
||||
return true;
|
||||
}
|
||||
else if (id == R.id.action_clear) {
|
||||
executor.getBehaviourList().clear();
|
||||
adapter.notifyDataSetChanged();
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue