retry 1000ms

Signed-off-by: r00498791 <renjie32@huawei.com>
This commit is contained in:
r00498791 2022-05-12 16:18:14 +08:00
parent c572224b7d
commit e9b39771a8

View File

@ -47,13 +47,15 @@ var notificationPanelWant = {
class ServiceExtAbility extends ServiceExtension {
onCreate(want) {
Log.showInfo(TAG, `api8New onCreate, want: ${JSON.stringify(want)}`)
initSystemUi(this.context);
AbilityManager.setContext(AbilityManager.ABILITY_NAME_ENTRY, this.context)
AbilityManager.startAbility(statusBarWant)
AbilityManager.startAbility(navigationBarWant)
AbilityManager.startAbility(volumePanelWant)
AbilityManager.startAbility(controlPanelWant)
AbilityManager.startAbility(notificationPanelWant)
setTimeout(() => {
initSystemUi(this.context);
AbilityManager.setContext(AbilityManager.ABILITY_NAME_ENTRY, this.context)
AbilityManager.startAbility(statusBarWant)
AbilityManager.startAbility(navigationBarWant)
AbilityManager.startAbility(volumePanelWant)
AbilityManager.startAbility(controlPanelWant)
AbilityManager.startAbility(notificationPanelWant)
}, 1000)
}
onDestroy() {