From 219698376b6515e7e0e9b33ce3253c4994c679e5 Mon Sep 17 00:00:00 2001 From: altay Date: Mon, 25 Apr 2022 16:40:32 +0800 Subject: [PATCH] Description:Modify the import method Sig:SIG_ApplicationFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: altay Change-Id: I63cfce7d412c82629c78f83e6474a4031d021098 --- api/app/context.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/app/context.d.ts b/api/app/context.d.ts index b03bc6357a..e114ebf09d 100644 --- a/api/app/context.d.ts +++ b/api/app/context.d.ts @@ -21,7 +21,7 @@ import BaseContext from '../application/BaseContext'; import { HapModuleInfo } from '../bundle/hapModuleInfo'; import { AppVersionInfo } from './appVersionInfo'; import { AbilityInfo } from '../bundle/abilityInfo'; -import { DisplayOrientation } from '../@ohos.bundle'; +import bundle from '../@ohos.bundle'; /** @@ -102,8 +102,8 @@ export interface Context extends BaseContext { * @since 7 * @syscap SystemCapability.Ability.AbilityRuntime.Core */ - getDisplayOrientation(callback: AsyncCallback): void - getDisplayOrientation(): Promise; + getDisplayOrientation(callback: AsyncCallback): void + getDisplayOrientation(): Promise; /** * Sets the display orientation of the current ability. @@ -111,8 +111,8 @@ export interface Context extends BaseContext { * @since 7 * @syscap SystemCapability.Ability.AbilityRuntime.Core */ - setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback): void - setDisplayOrientation(orientation: DisplayOrientation): Promise; + setDisplayOrientation(orientation: bundle.DisplayOrientation, callback: AsyncCallback): void + setDisplayOrientation(orientation: bundle.DisplayOrientation): Promise; /** * Sets whether to show this ability on top of the lock screen whenever the lock screen is displayed, keeping the ability in the ACTIVE state. -- Gitee