Fixed shouldAutorotate depricated warnings