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.
设置原本集中在 Activity 的长页面中,通过程序化 View 拼接布局、绑定控件状态和事件。此 PR 将设置改为 Jetpack Compose 分类首页与九个二级页,并把页面、状态与平台操作分开。
SettingsViewModel负责偏好持久化与StateFlow状态;SavedStateHandle保存分类和各页滚动位置。切换底部标签、配置变化和 Activity 重建时恢复当前位置,状态更新无需重建整页 View。DiPlayActivity协调文件选择、权限、CarPlay 重连和 Web 服务更新,通过明确的 actions / effects 接入界面。安全区域预览、热点配置、浏览器设备管理,以及证书密码/条目选择均使用 Compose 弹窗。验证:
:shared:testDebugUnitTest :common:testDebugUnitTest:704 项测试通过(shared 419 / common 285)。:mobile:lintDebug :mobile:assembleDebug:通过;Lint 无错误,保留 18 条警告。尚未进行真机验证。