The company’s new $1,799 smartphone proves the future is foldable.