Added what is needed to fix android bug of not showing correct list position when an item near the end of a list is selected and then an orientation switch is performed