mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
launcher整改
Signed-off-by: zhengyongjie <15531316327@163.com>
This commit is contained in:
parent
60026cd6a6
commit
215e217445
@ -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)}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user