mirror of
https://github.com/openharmony/applications_systemui.git
synced 2026-07-01 06:41:59 -04:00
dropdownpanel初始化时兜底设置ABILITY_NAME_NAVIGATION_BAR context
Signed-off-by: rtggg <18108170464@163.com>
This commit is contained in:
@@ -28,6 +28,7 @@ class ServiceExtAbility extends ServiceExtension {
|
||||
async onCreate(want: Want): Promise<void> {
|
||||
Log.showInfo(TAG, `onCreate, want: ${JSON.stringify(want)}`);
|
||||
AbilityManager.setContext(AbilityManager.ABILITY_NAME_DROPDOWN_PANEL, this.context);
|
||||
AbilityManager.setContext(AbilityManager.ABILITY_NAME_NAVIGATION_BAR, this.context);
|
||||
let defaultConfigInfo = await NavBarConfiguration.getConfiguration();
|
||||
let configInfo = NavBarConfiguration.setCustomConfiguration(defaultConfigInfo);
|
||||
AbilityManager.setAbilityData(AbilityManager.ABILITY_NAME_NAVIGATION_BAR, 'config', configInfo);
|
||||
|
||||
Reference in New Issue
Block a user