click on item selection

This commit is contained in:
Daniel Gultsch 2018-06-27 17:17:31 +02:00
parent 68f23af219
commit d6a40a839a

View file

@ -207,6 +207,9 @@ public class ChooseContactActivity extends AbstractSearchableListItemActivity im
@Override
public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {
if (selected.size() != 0) {
getListView().playSoundEffect(0);
}
Contact item = (Contact) getListItems().get(position);
if (checked) {
selected.add(item.getJid().toString());