From 2dc14389a1c4887e29d39dd073d4ac476acb34c3 Mon Sep 17 00:00:00 2001 From: zzs110 Date: Mon, 24 Jun 2024 17:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=80=9A=E7=9F=A5=E4=B8=AD?= =?UTF-8?q?=E8=BD=AC=E7=AB=99=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzs110 --- services/interaction/drag/src/drag_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/interaction/drag/src/drag_manager.cpp b/services/interaction/drag/src/drag_manager.cpp index 7b8b34054..fdc066ee9 100644 --- a/services/interaction/drag/src/drag_manager.cpp +++ b/services/interaction/drag/src/drag_manager.cpp @@ -233,13 +233,13 @@ int32_t DragManager::StopDrag(const DragDropResult &dropResult, const std::strin FI_HILOGI("mainWindow:%{public}d, dragResult:%{public}d, drop packageName:%{public}s," "drag out packageName:%{public}s", dropResult.mainWindow, dropResult.result, packageName.c_str(), dragOutPkgName.c_str()); -#ifdef OHOS_DRAG_ENABLE_ANIMATION - dragDrawing_.NotifyDragInfo(dragOutPkgName, packageName); -#endif // OHOS_DRAG_ENABLE_ANIMATION if (dragState_ == DragState::STOP) { FI_HILOGE("No drag instance running, can not stop drag"); return RET_ERR; } +#ifdef OHOS_DRAG_ENABLE_ANIMATION + dragDrawing_.NotifyDragInfo(dragOutPkgName, packageName); +#endif // OHOS_DRAG_ENABLE_ANIMATION if ((dropResult.result != DragResult::DRAG_EXCEPTION) && (context_ != nullptr) && (timerId_ >= 0)) { context_->GetTimerManager().RemoveTimer(timerId_); timerId_ = -1;