When a temporary item is selected, calling adapter.remove() (or maybe other methods as well) will mess up the selection in some strange way, even when setting it to other values before. So setSelectionQuietly() is not working properly and calling removeAdapterItemAt() multiple times will end up selecting the footer. Only workaround is resetting the selection to 0 before.
When a temporary item is selected, calling adapter.remove() (or maybe other methods as well) will mess up the selection in some strange way, even when setting it to other values before. So setSelectionQuietly() is not working properly and calling removeAdapterItemAt() multiple times will end up selecting the footer. Only workaround is resetting the selection to 0 before.