Index: athena/home/home_card_impl.cc |
diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc |
index 7b73bc241d21429f7f376ccfdea34e0617159554..c559594964a48036b2e1051dbe6936e6ad57ef62 100644 |
--- a/athena/home/home_card_impl.cc |
+++ b/athena/home/home_card_impl.cc |
@@ -606,6 +606,7 @@ void HomeCardImpl::OnGestureEnded(State final_state) { |
home_card_view_->ClearGesture(); |
if (state_ != final_state && |
(state_ == VISIBLE_MINIMIZED || final_state == VISIBLE_MINIMIZED)) { |
+ SetState(final_state); |
WindowManager::GetInstance()->ToggleOverview(); |
} else { |
HomeCard::State old_state = state_; |
@@ -631,7 +632,8 @@ void HomeCardImpl::OnGestureProgressed( |
} |
void HomeCardImpl::OnOverviewModeEnter() { |
- SetState(VISIBLE_BOTTOM); |
+ if (state_ == VISIBLE_MINIMIZED) |
+ SetState(VISIBLE_BOTTOM); |
} |
void HomeCardImpl::OnOverviewModeExit() { |