Workaround to make release notes chip disappear after some views
There's an issue of AppServiceAppResult::OnVisibilityChanged not being called for suggestion chips, which meant the Decrease function never ran. As a result, the release notes suggestion chip never disappeared. As a temporary workaround, move the Decrease function into AppServiceAppResult::HandleSuggestionChip. This gets called a bit more often (including when the session starts and when the launcher input is focused). Increase kTimesToShowSuggestionChip to compensate for this. Bug: b/169711884 Change-Id: I1f1827f5c8d4d5a37268074a4af4d2e4840c326b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442809 Commit-Queue: Zufeng Wang <zufeng@google.com> Reviewed-by:Nancy Wang <nancylingwang@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#814044}
Showing
Please register or sign in to comment