From 215e2174455f7f1f6a1532590bdc196dd73cd9b7 Mon Sep 17 00:00:00 2001 From: zhengyongjie <15531316327@163.com> Date: Fri, 16 Aug 2024 16:53:52 +0800 Subject: [PATCH] =?UTF-8?q?launcher=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhengyongjie <15531316327@163.com> --- .../main/ets/default/manager/AmsMissionManager.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/ets/default/manager/AmsMissionManager.ts b/common/src/main/ets/default/manager/AmsMissionManager.ts index a0f2dbb4..8eb4d956 100644 --- a/common/src/main/ets/default/manager/AmsMissionManager.ts +++ b/common/src/main/ets/default/manager/AmsMissionManager.ts @@ -244,12 +244,12 @@ class AmsMissionManager { */ async moveMissionToFront(missionId: number, winMode?: number) { Log.showInfo(TAG, `moveMissionToFront missionId: ${missionId}`); - try { - winMode ? await missionManager.moveMissionToFront(missionId, { windowMode: winMode }) : - await missionManager.moveMissionToFront(missionId); - Log.showDebug(TAG, 'moveMissionToFront missionId end success'); - } catch (err) { - Log.showError(TAG, `moveMissionToFront fail, err: ${JSON.stringify(err)}`); + try { + winMode ? await missionManager.moveMissionToFront(missionId, { windowMode: winMode }): + await missionManager.moveMissionToFront(missionId); + Log.showDebug(TAG, 'moveMissionToFront missionId end success'); + } catch (err) { + Log.showError(TAG, `moveMissionToFront fail, err: ${JSON.stringify(err)}`); } } }