-1
Good afternoon
I have an order app, record the items within an array when I need to delete an item from the request, somehow the array size does not decrease for example I registered 3 items and delete one, the size of the array is still 3 and if I don’t add another item to complete, the app hangs.
I’ve tried some things:
int size = request items(). size -1;
pedidoList.remove(lastindex)
Still giving trouble. what could be?
pedido.itens()
andpedidoList
reference the same object?– Daniel Mendes
Hello! request.items is a request class facility that accesses the item attribute which is the arraylist. pedidoList is another arrayList of the Requests class I use to list orders in Recycler view. I don’t know if I can understand...
– Tais Nayara