Merge "Remove a bad heuristic when determining click location for accessibility." into lmp-mr1-dev
This commit is contained in:
@@ -5942,8 +5942,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void addClickableRectsForAccessibility(List<RectF> outRects) {
|
public void addClickableRectsForAccessibility(List<RectF> outRects) {
|
||||||
if (isClickable() || isLongClickable()
|
if (isClickable() || isLongClickable()) {
|
||||||
|| (mListenerInfo != null && mListenerInfo.mOnTouchListener != null)) {
|
|
||||||
RectF bounds = new RectF();
|
RectF bounds = new RectF();
|
||||||
bounds.set(0, 0, getWidth(), getHeight());
|
bounds.set(0, 0, getWidth(), getHeight());
|
||||||
outRects.add(bounds);
|
outRects.add(bounds);
|
||||||
|
|||||||
Reference in New Issue
Block a user