update common/src/main/ets/default/model/common/ScreenManager.ts.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2024-08-27 07:40:11 +00:00 committed by Gitee
parent daf43dd09c
commit d0367dc5ce
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -243,8 +243,11 @@ export class ScreenManager {
} }
destroyMainWindow(): void { destroyMainWindow(): void {
this.getHost()?.off('windowSizeChange', (data: window.Size) => { try {
}); this.getHost()?.off('windowSizeChange');
} catch (error) {
Log.error(TAG, `destroy window error: ${error}, code: ${error?.code}`);
}
} }
getAvoidArea(): void { getAvoidArea(): void {