Fixed crash issue when clearing behaviour list

This commit is contained in:
Ziver Koc 2015-01-15 15:59:37 +01:00
parent e18c09b39d
commit 55f983c773
2 changed files with 3 additions and 0 deletions

View file

@ -78,6 +78,7 @@ public class EditActivity extends ListActivity implements AdapterView.OnItemClic
}
else if (id == R.id.action_clear) {
executor.getBehaviourList().clear();
adapter.generateIds();
adapter.notifyDataSetChanged();
return true;
}