12 Star 22 Fork 34

OpenHarmony / applications_systemui

 / 详情

navigationbar回退键失效

Canceled
Bug
Opened this issue  
2021-11-23 14:28

【任务描述】
clone此项目,重新签名打包navigationbar.hap,并安装至3516开发板,使用navigationbar上的回退键,回退键失效。
但是code-v3.0-LTS中的老版本SystemUI-NavigationBar.hap重新安装后,可以正常使用回退键。

01-01 00:59:26.130   952   965 I 03b00/JSApp: app Log: SystemUI_Default tag: NavigationBar-KeyButton --> onKeyTouch event: [object Object]
01-01 00:59:26.130   952   965 I 03b00/JSApp: app Log: SystemUI_Default tag: KeyCodeEvent --> sendKeyEvent keycode: 1 type: 1
01-01 00:59:26.131   952   965 I 03b00/JSApp: app Log: SystemUI_Default tag: KeyCodeEvent --> sendKeyEvent case back type: 1
01-01 00:59:26.131   952   965 I 03b00/JSApp: app Log: SystemUI_Default tag: KeyCodeEvent --> sendKeyEvent, else type: 1
01-01 00:59:26.131   952   965 I 03b00/JSApp: app Log: SystemUI_Default tag: KeyCodeEvent --> sendBackKeyEventEnd
01-01 00:59:26.131   952   965 E 03900/Ace: [<private>(<private>)] [DUMP] TypeError: cannot read property 'injectEvent' of undefined
01-01 00:59:26.131   952   965 E 03900/Ace: [<private>(<private>)]     at sendBackKeyEventEnd (pages/index.js:252)
01-01 00:59:26.131   952   965 E 03900/Ace:     at sendKeyEvent (pages/index.js:203)
01-01 00:59:26.131   952   965 E 03900/Ace:     at onKeyTouch (pages/index.js:562)
01-01 00:59:26.131   952   965 D 02d08/HISYSEVENT: HiSysEvent has send data
01-01 00:59:26.131   952   965 I 03900/Ace: [<private>(<private>)] gesture referee ready to notify reject for VerticalDragRecognizer
01-01 00:59:26.132   169   233 D 02d10/HiView-EventServer: Start: receive data from client <private>
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource: Parser: parser raw message size=386, {"domain_":"ACE","event_name_":"JS_ERROR","event_type_":1,"time_":3566131,"pid_":952,"tid_":965,"PACKAGE_NAME":"","REASON":"Js Crash","SUMMARY":"Lifetime: 0.000000s
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource: Js-Engine: Quick JS
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource: Stacktrace: TypeError: cannot read property 'injectEvent' of undefined
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource:     at sendBackKeyEventEnd (pages/index.js:252)
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource:     at sendKeyEvent (pages/index.js:203)
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource:     at onKeyTouch (pages/index.js:562)
01-01 00:59:26.132   169   233 D 02d10/HiView-SysEventSource:     at onKeyTouch (pages/index.js:562)
01-01 00:59:26.140   952   952 I 00000/VsyncHelperImpl: RequestFrameCallback: Success, Way: RequestFrameCallback time: 0, id: 12267
01-01 00:59:26.140    90    94 I 00000/VsyncModuleImpl: Trigger: Success, Way: Trigger
01-01 00:59:26.140    90    93 I 00000/VsyncManager: Callback: call callback
01-01 00:59:26.142   952   952 I 00000/VsyncHelperImpl: DispatchMain: DispatchFrameCallback id: 12267, time: 1609132716800, timestamp: 1609130704620

【解决方案】

【任务来源】

Comments (3)

甜甜酱 created缺陷
林帅 changed issue state from 待办的 to 已确认
Expand operation logs

您好,请问您刷的3516开发板是LTS版本还是master版本?
因为master分支的事件注入系统接口API有变更,master分支上SystemUI已同步最新API接口,所以与lts上有差异,master编出来的hap需要在master分支配套API版本上运行,对应注入BACK事件接口才能得到正确响应。
master分支注入接口使用可参考demo:
https://gitee.com/openharmony/multimodalinput_input/blob/master/examples/js_demo/entry/src/main/js/default/pages/index/index.js
API接口使用说明已同步知会对应子系统更新readme。

刷的LTS版本的,工程是master分支。
好的,明白了,谢谢。

版本配套问题,非问题。

林帅 changed issue state from 已确认 to 已取消

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(3)
8358727 hytyj hamstermie 1630033774
1
https://git.oschina.net/openharmony/applications_systemui.git
git@git.oschina.net:openharmony/applications_systemui.git
openharmony
applications_systemui
applications_systemui

Search