Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
Why
The iPhone currently switches to landscape when a remote desktop session opens. When holding the phone upright, this forces a rotation every time. Let users choose the orientation used when a session opens.
Changes
Verification
git diff --checkpass.allowBluetoothHFPis unavailable in that SDK; after a temporary local substitution,VideoDecoder.swifthits a compiler type-check timeout. The temporary simulator edit was restored and is not part of this PR. A locally signed test build was installed on an iPhone 15 Pro, and the user confirmed the orientation choice works. The test build used local Xcode 16.2 compatibility changes that are not included in this PR.中文
为什么需要
现在 iPhone 连接电脑后会自动切成横屏。竖着拿手机时,每次都要手动旋转。增加一个默认方向设置,让用户按自己的使用习惯选择连接后显示横屏还是竖屏。
改动
验证
git diff --check和 XcodeGen 工程生成均通过。allowBluetoothHFP;临时替换该调用后,VideoDecoder.swift又出现编译器类型检查超时。模拟器临时替换已还原,不在本 PR 中。已在 iPhone 15 Pro 安装本地签名测试版,用户确认方向选择效果正常。测试版为适配本机 Xcode 16.2 使用了仅限本地的编译兼容改动,均不在本 PR 中。