Fixed the way the ListAdapter is being initialized and restored.