Commit 92a4864c authored by Matthew Jones's avatar Matthew Jones Committed by Commit Bot

Don't animate sheet when clearing requests and closing

This patch disables animations when the bottom sheet is clearing its
requests and hiding. This prevents an issue in EoC where new content
is requested prior to the sheet being completely hidden. This results
in suggestions being visible without reverse scrolling.

Bug: 834923
Change-Id: I8bed11c87e24ab3b16d95d91329723eeb2a188e5
Reviewed-on: https://chromium-review.googlesource.com/1048705Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557520}
parent 0496add0
......@@ -395,7 +395,7 @@ public class BottomSheetController implements ApplicationStatus.ActivityStateLis
// TODO(mdjones): Replace usages of bottom sheet with a model in line with MVC.
// TODO(mdjones): It would probably be useful to expose an observer method that notifies
// objects when all content requests are cleared.
hideContent(mBottomSheet.getCurrentSheetContent(), true);
hideContent(mBottomSheet.getCurrentSheetContent(), false);
mWasShownForCurrentTab = false;
mIsSuppressed = false;
}
......
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