Chromium Code Reviews| Index: ash/common/system/toast/toast_overlay.cc |
| diff --git a/ash/common/system/toast/toast_overlay.cc b/ash/common/system/toast/toast_overlay.cc |
| index 87d49c687e703ab71e236c569190dc65a394d786..2e0f5452b0bbddfeaf74e8d7d9731dce9d4f0818 100644 |
| --- a/ash/common/system/toast/toast_overlay.cc |
| +++ b/ash/common/system/toast/toast_overlay.cc |
| @@ -253,6 +253,8 @@ void ToastOverlay::Show(bool visible) { |
| ui::LayerAnimator* animator = overlay_widget_->GetLayer()->GetAnimator(); |
| DCHECK(animator); |
| + if (animator->is_animating()) |
| + return; |
|
oshima
2016/07/14 13:18:31
won't his also prevent showing during hiding anima
yoshiki
2016/07/15 02:38:30
It doesn't happen, since a toast overlay instance
|
| base::TimeDelta original_duration = animator->GetTransitionDuration(); |
| ui::ScopedLayerAnimationSettings animation_settings(animator); |