hide systembar when preview

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-20 11:59:31 +08:00
parent 4229024adf
commit 0fb394cc36
6 changed files with 49 additions and 19 deletions

View File

@@ -1444,7 +1444,7 @@ class PlPlayerController with BlockConfigMixin {
try {
if (status) {
if (PlatformUtils.isMobile) {
hideStatusBar();
hideSystemBar();
if (orientation == null && mode == .none) {
return;
}
@@ -1477,7 +1477,7 @@ class PlPlayerController with BlockConfigMixin {
} else {
if (PlatformUtils.isMobile) {
if (!removeSafeArea) {
showStatusBar();
showSystemBar();
}
if (orientation == null && mode == .none) {
return;
@@ -1633,7 +1633,7 @@ class PlPlayerController with BlockConfigMixin {
_playerCount = 0;
if (removeSafeArea) {
showStatusBar();
showSystemBar();
}
danmakuController = null;
_stopOrientationListener();