[Android][Crash] Ensure accessory passes valid content view to UiUtils
Currently, the keyboard accessory uses the focused view in the activity as view to check for keyboard visibility. This works most of the time, when an input field is focused but it's thinkable that the focus moves away (most likely programmatically) which could lead to the observed crashes. This CL now ensures, that the focused view is exclusively used when a keyboard needs to be shown and the detection (which relies on the content area layout) is always invoked with the content view. Bug: 876231 Change-Id: Ib65c7985987291cd2b85098b920106dbde40753d Reviewed-on: https://chromium-review.googlesource.com/1183423Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Friedrich Horschig [CEST] <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#584813}
Showing
Please register or sign in to comment