Cycle through local contact states

This commit is contained in:
M66B 2021-10-30 18:52:01 +02:00
parent 0235ddcdf1
commit ef3c59f2e6
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
TupleContactEx contact = selected.get(pos);
if (contact.state == EntityContact.STATE_DEFAULT)
contact.state = EntityContact.STATE_FAVORITE;
else if (contact.state == EntityContact.STATE_FAVORITE)
contact.state = EntityContact.STATE_IGNORE;
else
contact.state = EntityContact.STATE_DEFAULT;