Activity states are saved and restored on configuration changes.