Skip to content

Fix/toggle system bar - #143

Merged
qinshah merged 2 commits into
dev4harmony:ohosfrom
qinshah:fix/toggleSystemBar
Aug 1, 2026
Merged

Fix/toggle system bar#143
qinshah merged 2 commits into
dev4harmony:ohosfrom
qinshah:fix/toggleSystemBar

Conversation

@qinshah

@qinshah qinshah commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

qinshah added 2 commits August 1, 2026 18:05
移除原有的 `StatusBar` 管理类,改用 `fullscreen.dart` 中的工具函数统一管理系统状态栏的显示与隐藏。

主要变更:
- 移除 `lib/harmony_adapt/status_bar.dart`。
- 重构 `showSystemBar` 函数,支持传入 `reason` 参数用于调试日志打印。
- 在 `fullscreen.dart` 中新增 `toggleSystemBar` 函数,实现状态栏状态的切换。
- 更新视频播放器、图片查看器及视频详情页的调用逻辑,以适配新的工具函数。
调整 `_VideoDetailPageVState` 中 `childWhenDisabled` 的判断条件。

移除对 `isPortrait` 的依赖,改为根据 `videoDetailController` 的横屏状态或安全区域移除状态来决定是否隐藏系统状态栏,以确保在不同显示模式下状态栏行为的一致性。
@qinshah
qinshah merged commit 04810ca into dev4harmony:ohos Aug 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant