diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-01-22 18:49:13 -0800 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-01-22 18:51:47 -0800 |
commit | 41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5 (patch) | |
tree | 58a89875256cfb13078d19a1e8d2c4e404b1211b /core/java/android/view/ViewGroup.java | |
parent | 76ff4dd0de8d9747b9341f064dd270c5762705c6 (diff) | |
download | frameworks_base-41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5.zip frameworks_base-41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5.tar.gz frameworks_base-41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5.tar.bz2 |
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
Diffstat (limited to 'core/java/android/view/ViewGroup.java')
-rw-r--r-- | core/java/android/view/ViewGroup.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 6678ff2..a09837d 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -829,8 +829,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager // Clip the bounds by our bounds. bounds.left = Math.max(bounds.left, 0); bounds.top = Math.max(bounds.top, 0); - bounds.right = Math.min(bounds.right, mRight); - bounds.bottom = Math.min(bounds.bottom, mBottom); + bounds.right = Math.min(bounds.right, getWidth()); + bounds.bottom = Math.min(bounds.bottom, getHeight()); Iterator<View> iterator = obtainOrderedChildIterator(); while (iterator.hasNext()) { |