Commit b6e76435 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Fix stacked notification bar hide animation

The hide animation for stacked notification bar is not
correctly initiated in the current implementation.

Bug: 1051671
Change-Id: I94b75c161eddff9b6123e48c869e277a2e67ac31
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067334Reviewed-by: default avatarTim Song <tengs@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743315}
parent f205bb0e
......@@ -167,6 +167,12 @@ bool UnifiedMessageCenterView::IsNotificationBarVisible() {
}
void UnifiedMessageCenterView::OnNotificationSlidOut() {
if (collapsed_) {
if (!message_list_view_->GetTotalNotificationCount())
StartHideStackingBarAnimation();
return;
}
if (notification_bar_->GetVisible() &&
message_list_view_->GetTotalNotificationCount() <= 1) {
StartHideStackingBarAnimation();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment