click on item selection

This commit is contained in:
Daniel Gultsch 2018-06-27 17:17:31 +02:00
parent 68f23af219
commit d6a40a839a
1 changed files with 3 additions and 0 deletions

View File

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