| Index: ash/system/toast/toast_overlay.cc
|
| diff --git a/ash/system/toast/toast_overlay.cc b/ash/system/toast/toast_overlay.cc
|
| index 752547e0b756a77bc73b9bceff1054cf70510bba..d90bd488be0fb2db02fea053135909397c425ae2 100644
|
| --- a/ash/system/toast/toast_overlay.cc
|
| +++ b/ash/system/toast/toast_overlay.cc
|
| @@ -251,6 +251,13 @@ void ToastOverlay::Show(bool visible) {
|
|
|
| ui::LayerAnimator* animator = overlay_widget_->GetLayer()->GetAnimator();
|
| DCHECK(animator);
|
| + if (animator->is_animating()) {
|
| + // Showing during hiding animation doesn't happen since, ToastOverlay should
|
| + // be one-time-use and not be reused.
|
| + DCHECK(!visible);
|
| +
|
| + return;
|
| + }
|
|
|
| base::TimeDelta original_duration = animator->GetTransitionDuration();
|
| ui::ScopedLayerAnimationSettings animation_settings(animator);
|
|
|