Added fix for ios so device returns to current orientation when unlocked