Commit c0d5baea authored by sandromaggi's avatar sandromaggi Committed by Commit Bot

[Autofill Assistant] Expand bottom sheet when same tab is selected.

Previously, we did run the |safeNativeSetVisible(true)| which does not
show the content or expand the bottom sheet while in the |RUNNING|
state. This CL forces an expand of the bottom sheet in that scenario.

Bug: b/152951618
Change-Id: I9702f825f8ee29e90814c3b15524d0181dc6f821
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132367Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#755360}
parent ef0dcb33
......@@ -137,8 +137,10 @@ class AutofillAssistantUiController {
// later.
safeNativeSetVisible(false);
} else if (tab.getWebContents() == mWebContents) {
// The original tab was re-selected. Show it again
// The original tab was re-selected. Show it again and force an
// expansion on the bottom sheet.
safeNativeSetVisible(true);
showContentAndExpandBottomSheet();
} else {
// A new tab was selected. If Autofill Assistant is running on it,
// attach the UI to that other instance, otherwise destroy the UI.
......
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