Disable focus highlight overlay for non-touch mode on ContentView.
On O+, Android draws a translucent grey overlay over focused views when the device is not in touch mode (as in, the user is using keyboard to navigate rather than touch/mouse). Drawing this overlay over the entire ContentView doesn't make sense, so we should just disable it. We also have to disable it for the CompositorViewHolder, or when we go between NativePages (like NTP) and WebContents, we animate into and out of the grey overlay, because the CompositorViewHolder briefly gains focus. Bug: 912724, 908917 Change-Id: I97b7f688f06581e872898028a48e6e7b4546d710 Reviewed-on: https://chromium-review.googlesource.com/c/1367926Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Reviewed-by:
Bo <boliu@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#614783}
Showing
Please register or sign in to comment