Prevent BottomSheet from receiving multiple onShowContextualSearch events
Contextual Search show/hide events are not 1:1. Show can be called multiple times when the text selection changes (which is pretty often). This would cause the bottom sheet to remain hidden after Contextual Search was gone. This patch checks if Contextual Search is already showing in the BottomSheetController as not to change the behavior of other Contextual Search observers. Bug: 827353 Change-Id: Ib133224042cef6509d3cd7b81df78810093190f8 Reviewed-on: https://chromium-review.googlesource.com/1012193Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#550689}
Showing
Please register or sign in to comment