Merge "Remove a bad heuristic when determining click location for accessibility." into lmp-mr1-dev

This commit is contained in:
Svet Ganov
2014-12-19 22:33:49 +00:00
committed by Android (Google) Code Review

View File

@@ -5942,8 +5942,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @hide
*/
public void addClickableRectsForAccessibility(List<RectF> outRects) {
if (isClickable() || isLongClickable()
|| (mListenerInfo != null && mListenerInfo.mOnTouchListener != null)) {
if (isClickable() || isLongClickable()) {
RectF bounds = new RectF();
bounds.set(0, 0, getWidth(), getHeight());
outRects.add(bounds);