mirror of
https://gitee.com/openharmony/applications_systemui
synced 2025-01-05 23:48:45 +00:00
retry 1000ms
Signed-off-by: r00498791 <renjie32@huawei.com>
This commit is contained in:
parent
c572224b7d
commit
e9b39771a8
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user