重写关闭全屏实现以支持SDK35#1099
Merged
Merged
Conversation
- 简化 `FullScreenAppCompatActivity`,移除手动切换窗口模式的逻辑,统一应用全屏沉浸模式。 - 移除 `RefreshFullScreen` 事件及相关 ViewModel 传递,改为在 Compose 布局层动态响应设置。 - 在 `MainScreen`、`ErrorScreen`、`VMActivity` 和 `ControlEditorActivity` 中引入 `WindowInsets.displayCutout`,根据全屏设置动态调整布局边距。 - 将 `ErrorScreen` 的根布局重构为 `Scaffold` 以更好地支持 `contentWindowInsets`。
MovTery
approved these changes
Apr 24, 2026
Contributor
Collaborator
Author
|
我研究一下 |
Collaborator
Author
|
怎么把fillMaxXX删了,不怕被神秘重组出现的神秘展开“动画”背刺吗😰 |
Contributor
Contributor
|
额,你应该是误解了,then本身就是把参数内的新Modifier合并到被扩展的Modifier,所以我原本写的反而是没问题的,你这个直接引用被扩展的Modifier,反而会多合并一次原本的Modifier |
Collaborator
Author
|
🌿😰 |
Collaborator
Author
|
试试看 |
Contributor
|
额,看了下,可能需要单独为ChromeOS强制应用windowInsetsPadding(WindowInsets.systemBars),但是貌似没有很好的方式去检查ChromeOS |
Contributor
|
以及,全屏那块参考了下崩铁(? |
Contributor
|
算了不适配就不适配吧,ChromeOS还是太神秘了 |
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.


因为有强迫症,所以可能在刚学compose不久就去研究了这些😰




而且这样实现的视觉效果可能会更好一点