提交 137a6761 编写于 作者: R raul 提交者: laoyitong

fixed e56eee74 from https://gitee.com/raulnaruto/xts_acts/pulls/5299

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