From 1444fa404490e2b1ad6ed6676b7999c70929d9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Mon, 19 Mar 2018 14:25:46 +0800 Subject: [PATCH] fix: dock hang when receive attention on fastion mode Change-Id: Ic0c74a5faed52e15718a4c634c595c71e02b8602 --- frame/item/appitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 17a531e98..a4e64f51e 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -590,6 +590,10 @@ void AppItem::cancelAndHidePreview() void AppItem::playSwingEffect() { + // NOTE(sbw): return if animation view already playing + if (m_swingEffectView->isVisible()) + return; + stopSwingEffect(); if (!m_itemAnimation.timeLine()) {