am 04bea090: am 0224d25d: Merge "Account for window bounds in accessibility view click point computation" into lmp-mr1-dev
* commit '04bea0905724e24ce8b80187134e7f698607ae1a': Account for window bounds in accessibility view click point computation
This commit is contained in:
@@ -5901,6 +5901,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
region.op(interactiveRegion, Region.Op.INTERSECT);
|
region.op(interactiveRegion, Region.Op.INTERSECT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Take into account the window bounds.
|
||||||
|
final View root = getRootView();
|
||||||
|
if (root != null) {
|
||||||
|
region.op(dx, dy, root.getWidth() + dx, root.getHeight() + dy, Region.Op.INTERSECT);
|
||||||
|
}
|
||||||
|
|
||||||
// If the view is completely covered, done.
|
// If the view is completely covered, done.
|
||||||
if (region.isEmpty()) {
|
if (region.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user