OSDN Git Service

Accessibilty: Cannot click on views in a scrollable container covered by the toolbar.
authorSvetoslav <svetoslavganov@google.com>
Fri, 23 Jan 2015 02:49:13 +0000 (18:49 -0800)
committerSvetoslav <svetoslavganov@google.com>
Fri, 23 Jan 2015 02:51:47 +0000 (18:51 -0800)
commit41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5
tree58a89875256cfb13078d19a1e8d2c4e404b1211b
parent76ff4dd0de8d9747b9341f064dd270c5762705c6
Accessibilty: Cannot click on views in a scrollable container covered by the toolbar.

In accessibility mode we calculate a point where to click in the accessibility
focused view as a bridge-gap solution before switching to accessibility click
actions. We cannot detect whether a view is covered by another one that consumes
all touch events, and therefore we may click on the wrong target. This was the
case with the toolbar. As a result a partially scrolled view in a scrollable
container covered by a toolbar cannot be activated and this is not an edge case.

bug:18986806

Change-Id: Ib41470c39806cec13e9b00b319879cd7f3412ab5
core/java/android/view/ViewGroup.java
core/java/android/widget/Toolbar.java
core/java/com/android/internal/widget/ActionBarContainer.java