Skip to content

Commit

Permalink
[RSearches] Internal state should be reset when the panel is closed
Browse files Browse the repository at this point in the history
(cherry picked from commit b1d9485)

Bug: 1314308
Change-Id: Ieddbaa269348e11b15109b699d9bdd62aee30a10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3595704
Reviewed-by: Donn Denman <donnd@chromium.org>
Commit-Queue: Gang Wu <gangwu@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#994399}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3606195
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Gang Wu <gangwu@chromium.org>
Cr-Commit-Position: refs/branch-heads/5005@{#153}
Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
  • Loading branch information
Gang Wu authored and Chromium LUCI CQ committed Apr 25, 2022
1 parent a08f7cc commit c65802b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -253,6 +253,9 @@ public void setPanelState(@PanelState int toState, @StateChangeReason int reason
if (getBarBannerControl().isVisible()) {
getBarBannerControl().animateAppearance();
}
}

if (toState == PanelState.CLOSED || toState == PanelState.UNDEFINED) {
mManagementDelegate.onPanelFinishedShowing();
}

Expand Down
Expand Up @@ -80,7 +80,7 @@ public interface ContextualSearchManagementDelegate {
void logCurrentState();

/**
* Called when the Contextual Search panel's animation is finished and it's shown.
* Called when the Contextual Search panel is closed.
*/
void onPanelFinishedShowing();

Expand Down

0 comments on commit c65802b

Please sign in to comment.