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-06-26 19:18:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
26b8985eb55b104afed0d88f60025d7b806ccdad
26b8985e
1 parent
a72ff111
语音播报后导致华为自带的返回功能无效
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
View file @
26b8985
...
...
@@ -107,8 +107,18 @@ export default class EntryAbility extends UIAbility {
;
});
floatWindowClass.on('windowEvent', (data) => {
EmitterUtils.sendEvent(EmitterEventId.AUDIO_WINDOW_TYPE, data)
floatWindowClass.setWindowFocusable(false, (err: BusinessError) => {
const errCode: number = err.code;
if (errCode) {
console.error(`Failed to set the window to be focusable. Cause code: ${err.code}, message: ${err.message}`);
return;
}
console.info('Succeeded in setting the window to be focusable.');
});
floatWindowClass.on('touchOutside', () => {
console.info('touchOutside');
EmitterUtils.sendEvent(EmitterEventId.AUDIO_WINDOW_TYPE, 3)
});
});
...
...
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
View file @
26b8985
...
...
@@ -143,8 +143,14 @@ struct Index {
.height(3)
.margin({ top: 7 })
}
.width("100%")
.height("100%")
.padding({
top: 10,
bottom: 10,
left: 10,
right: 0
})
.width(243)
.height(60)
.justifyContent(FlexAlign.Start)
Row() {
...
...
@@ -217,8 +223,6 @@ struct Index {
})
)
)
.width('100%')
.height('100%')
.borderRadius(4)
.padding({
top: 10,
...
...
Please
register
or
login
to post a comment