fix user adapter view recycling bug

This commit is contained in:
Daniel Gultsch 2020-02-14 12:04:11 +01:00
parent 62021aae59
commit c34d40ebff

View file

@ -111,6 +111,8 @@ public class UserAdapter extends ListAdapter<MucOptions.User, UserAdapter.ViewHo
} }
}); });
viewHolder.binding.key.setText(OpenPgpUtils.convertKeyIdToHex(user.getPgpKeyId())); viewHolder.binding.key.setText(OpenPgpUtils.convertKeyIdToHex(user.getPgpKeyId()));
} else {
viewHolder.binding.key.setVisibility(View.GONE);
} }