diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-01-23 16:06:43 -0800 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-01-23 16:13:43 -0800 |
commit | a1ac6a09252a8a615230f08767ab6153bd23a165 (patch) | |
tree | 2d46e2ec30894c0cbdfc96ca056e6320830f1b9c /core/java/com | |
parent | 10a053e474e2a566b49a1e4c9e2ec4c8cc0013bd (diff) | |
download | frameworks_base-a1ac6a09252a8a615230f08767ab6153bd23a165.zip frameworks_base-a1ac6a09252a8a615230f08767ab6153bd23a165.tar.gz frameworks_base-a1ac6a09252a8a615230f08767ab6153bd23a165.tar.bz2 |
Accessibility: Ignore overlapping siblings when computing a click location
To click a view we were computing a click location by ignoring overlapping
views that are actionable. However, detection whether a view is actionable
is not always possible as the view may handle touch events directly. This
leads to unhandled edge cases. We are taking a conservative approach and
ignore all overlapping siblings regardless if clickable. This is also has
limitations but hopefully less frequent edge cases.
bug:18889611
Change-Id: Icea0b7b3e2d4ed53e50e01cb6a99b880be560b14
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/widget/ActionBarContainer.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/java/com/android/internal/widget/ActionBarContainer.java b/core/java/com/android/internal/widget/ActionBarContainer.java index e8e2c8d..7937a95 100644 --- a/core/java/com/android/internal/widget/ActionBarContainer.java +++ b/core/java/com/android/internal/widget/ActionBarContainer.java @@ -227,18 +227,6 @@ public class ActionBarContainer extends FrameLayout { return true; } - /** - * @hide - */ - @Override - public void addClickableRectsForAccessibility(List<RectF> outRects) { - // This class always consumes touch events, therefore if it - // covers a view we do not want to send a click over it. - RectF bounds = new RectF(); - bounds.set(0, 0, getWidth(), getHeight()); - outRects.add(bounds); - } - @Override public boolean onHoverEvent(MotionEvent ev) { super.onHoverEvent(ev); |