From 8e59641f2e368f37516bd2b90d272eee4929cd5d Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Wed, 13 Jan 2016 18:02:39 +0300 Subject: [PATCH] no invokeLater for paintCycleEnd (otherwise ballon hide may happen too late even with animation off) --- .../src/com/intellij/util/ui/Animator.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/platform/platform-api/src/com/intellij/util/ui/Animator.java b/platform/platform-api/src/com/intellij/util/ui/Animator.java index 5d8a92bf72b2..f23281871aff 100644 --- a/platform/platform-api/src/com/intellij/util/ui/Animator.java +++ b/platform/platform-api/src/com/intellij/util/ui/Animator.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,14 +106,9 @@ public abstract class Animator implements Disposable { } private void animationDone() { + ApplicationManager.getApplication().assertIsDispatchThread(); stopTicker(); - - SwingUtilities.invokeLater(new Runnable() { - @Override - public void run() { - paintCycleEnd(); - } - }); + paintCycleEnd(); } private void stopTicker() {