Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-10 15:58:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
512cfa8dc6857c3bf37d1139d0f0f7bed001f44f
512cfa8d
1 parent
cbf3224b
fix: 横屏视频,全屏播放后返回一级频道页,底部bar被底部导航条遮挡
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerFullScreenView.ets
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerFullScreenView.ets
View file @
512cfa8
...
...
@@ -2,7 +2,7 @@ import { ContentDetailDTO } from 'wdBean/Index'
import { WDShare } from 'wdShare/Index'
import { PlayerProgressFullScreenView } from './PlayerProgressFullScreenView'
import { PlayerConstants, WDPlayerController } from 'wdPlayer/Index'
import { DateTimeUtils, Logger, WindowModel } from 'wdKit/Index'
import { DateTimeUtils,
EmitterEventId, EmitterUtils,
Logger, WindowModel } from 'wdKit/Index'
import { DisplayDirection } from 'wdConstant/Index'
import { window } from '@kit.ArkUI'
...
...
@@ -93,6 +93,7 @@ export struct PlayerFullScreenView {
WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
window.Orientation.PORTRAIT :
window.Orientation.LANDSCAPE)
EmitterUtils.sendEvent(EmitterEventId.FULL_SCREEN, 0)
})
Text(this.getTitle())
.fontSize(18)
...
...
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
View file @
512cfa8
...
...
@@ -74,10 +74,8 @@ export struct BottomNavigationComponent {
})
EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => {
Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
if (str) {
// 跳转指定频道场景,传参底导id、频道id
this.isLayoutFullScreen = str == '1' ? true : false
}
})
}
...
...
@@ -127,7 +125,11 @@ export struct BottomNavigationComponent {
// 备注:鸿蒙目前只有修改三线导航背景方法,对于全面屏导航条手机需要设置背景色并使其扩散到导航区域
// .backgroundColor(this.barBackgroundColor)
.layoutWeight(1)
Blank().width('100%').height(this.bottomRectHeight1).backgroundColor(this.barBackgroundColor).visibility(this.isLayoutFullScreen?Visibility.None:Visibility.Visible)
Blank()
.width('100%')
.height(this.bottomRectHeight1)
.backgroundColor(this.barBackgroundColor)
.visibility(this.isLayoutFullScreen ? Visibility.None : Visibility.Visible)
}.height('100%').width('100%')
}
...
...
Please
register
or
login
to post a comment