fix(18831): UI还原问题-【uat】进入竖屏直播直播间。点击会显示播放和全屏按钮---新版本3.0.025-老版本无问题
Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -44,12 +44,12 @@ export struct PlayerTitleComponent { | @@ -44,12 +44,12 @@ export struct PlayerTitleComponent { | ||
| 44 | Image($r('app.media.icon_arrow_left_white')) | 44 | Image($r('app.media.icon_arrow_left_white')) |
| 45 | .width(24) | 45 | .width(24) |
| 46 | .aspectRatio(1) | 46 | .aspectRatio(1) |
| 47 | - .visibility(this.isLarge ? Visibility.Visible : Visibility.None) | 47 | + .visibility((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? Visibility.Visible : Visibility.None) |
| 48 | .margin({ | 48 | .margin({ |
| 49 | right: 10 | 49 | right: 10 |
| 50 | }) | 50 | }) |
| 51 | .onClick(() => { | 51 | .onClick(() => { |
| 52 | - WindowModel.shared.setPreferredOrientation(this.isLarge ? | 52 | + WindowModel.shared.setPreferredOrientation((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? |
| 53 | window.Orientation.PORTRAIT : | 53 | window.Orientation.PORTRAIT : |
| 54 | window.Orientation.LANDSCAPE_INVERTED) | 54 | window.Orientation.LANDSCAPE_INVERTED) |
| 55 | WindowModel.shared.setSpecificSystemBarEnabled(true) | 55 | WindowModel.shared.setSpecificSystemBarEnabled(true) |
| @@ -74,7 +74,7 @@ export struct PlayerTitleComponent { | @@ -74,7 +74,7 @@ export struct PlayerTitleComponent { | ||
| 74 | Image($r('app.media.icon_share')) | 74 | Image($r('app.media.icon_share')) |
| 75 | .width(24) | 75 | .width(24) |
| 76 | .aspectRatio(1) | 76 | .aspectRatio(1) |
| 77 | - .visibility(this.isLarge ? Visibility.Visible : Visibility.None) | 77 | + .visibility((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? Visibility.Visible : Visibility.None) |
| 78 | .margin({right:16}) | 78 | .margin({right:16}) |
| 79 | }.margin({ bottom: 10 }) | 79 | }.margin({ bottom: 10 }) |
| 80 | 80 |
-
Please register or login to post a comment