Reapply "hide systembar when preview"

This reverts commit d6bce6aa63.
This commit is contained in:
dom
2026-04-29 12:13:12 +08:00
parent 7b51b6900f
commit c7864ff4a3
7 changed files with 73 additions and 28 deletions

View File

@@ -1474,7 +1474,7 @@ class PlPlayerController with BlockConfigMixin {
try {
if (status) {
if (PlatformUtils.isMobile) {
hideStatusBar();
hideSystemBar();
await changeOrientation(
isVertical: isVertical,
orientation: orientation,
@@ -1485,7 +1485,7 @@ class PlPlayerController with BlockConfigMixin {
} else {
if (PlatformUtils.isMobile) {
if (!removeSafeArea) {
showStatusBar();
showSystemBar();
}
if (orientation == null && mode == .none) {
return;
@@ -1632,7 +1632,7 @@ class PlPlayerController with BlockConfigMixin {
_playerCount = 0;
if (removeSafeArea) {
showStatusBar();
showSystemBar();
}
danmakuController = null;
_stopOrientationListener();