Question
TouchGFX listLayout remove function doesn't work as it sposed to be.
Hi,
I'm using list layout for my UI application. I'm holding some settings on the list and saving that data into flash. But when I erase an element(for example element 3 out of 6). element 3 erasing on the screen but not from the buffer. So when I write the data to flash I element 3 is still there but 6 is gone.
In here I don't have any elements and data on flash

Here I wrote data on flash


And here I erased second element (name two) and it didn't erase but number four is gone.


I'm using list example's code for erasing.
void listElement::deleteAction()
{
if(viewCallback-> isValid())
{
viewCallback-> execute(*this);
}
}
void settingsView::listElementClicked(listElement& element)
{
list.remove(element);
scrollCnt.invalidate();
}
