Skip to content

Commit

Permalink
[ContextualSearch] Add close button to list of actions that shouldPre…
Browse files Browse the repository at this point in the history
…ventHandlingCurrentSelectionModification

If the panel is dismissed due to the user clicking the close button,
a selection modification on the current selection should not cause the
panel to reappear.

BUG=555775
[email protected]

Review URL: https://codereview.chromium.org/1442353002

Cr-Commit-Position: refs/heads/master@{#359718}

Review URL: https://codereview.chromium.org/1450413002 .

Cr-Commit-Position: refs/branch-heads/2564@{crosswalk-project#19}
Cr-Branched-From: 1283eca-refs/heads/master@{#359700}
  • Loading branch information
Theresa Wellington committed Nov 17, 2015
1 parent ae27c2c commit bb6c938
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ private boolean shouldPreventHandlingCurrentSelectionModification(StateChangeRea
&& (reason == StateChangeReason.BACK_PRESS
|| reason == StateChangeReason.BASE_PAGE_SCROLL
|| reason == StateChangeReason.SWIPE
|| reason == StateChangeReason.FLING);
|| reason == StateChangeReason.FLING
|| reason == StateChangeReason.CLOSE_BUTTON);
}

/**
Expand Down

0 comments on commit bb6c938

Please sign in to comment.