提交 e56eee74 编写于 作者: R raul

fix ability foreground failed

Signed-off-by: Nraul <laoyitong@huawei.com>
Change-Id: I8060a54b475c417091bd0df952671bac298d3e63
上级 eaa1af15
...@@ -38,7 +38,9 @@ export default class MainAbility2 extends Ability { ...@@ -38,7 +38,9 @@ export default class MainAbility2 extends Ability {
windowStage.setUIContent(this.context, "pages/index", null) windowStage.setUIContent(this.context, "pages/index", null)
windowStage.on('windowStageEvent', (data)=>{ windowStage.on('windowStageEvent', (data)=>{
if(data == 2){ if(data == 2){
setTimeout(()=>{
commonEvent.publish("ACTS_DoAbility_Event", PublishCallBackOne); commonEvent.publish("ACTS_DoAbility_Event", PublishCallBackOne);
}, 2000)
} }
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册