Commit 50e2edfb authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

[Android] Request layouting after hiding keyboard replacement

The compositor viewholder relies on a layout change as signal that the
keyboard might have changed its state.
As the accessory doesn't emit this by default (because the activity
remains of the same size), emit this signal when the keyboard would
trigger it.

Bug: 900510
Change-Id: I9f78661f9835b6d04b202ea8dbd02df77d402b54
Reviewed-on: https://chromium-review.googlesource.com/c/1317913Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
Commit-Queue: Friedrich Horschig [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605353}
parent 7ed192df
...@@ -325,6 +325,7 @@ class ManualFillingMediator extends EmptyTabObserver ...@@ -325,6 +325,7 @@ class ManualFillingMediator extends EmptyTabObserver
mKeyboardAccessory.closeActiveTab(); mKeyboardAccessory.closeActiveTab();
mKeyboardAccessory.setBottomOffset(0); mKeyboardAccessory.setBottomOffset(0);
mAccessorySheet.hide(); mAccessorySheet.hide();
mActivity.getCompositorViewHolder().requestLayout(); // Request checks for keyboard changes.
} }
/** /**
......
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