The conditions of this if block overlaps with the previous one (if position == mSelectedIndex). Is there is any way to consolidate them for better readability?