am e130d6c1: Merge "Remove a bad heuristic when determining click location for accessibility." into lmp-mr1-dev
* commit 'e130d6c14ae2d4a6f703ef452a7e5741d84936a0': Remove a bad heuristic when determining click location for accessibility.
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