Preserves state on minimize but not on orientation change.