diff options
author | Paul Duffin <paulduffin@google.com> | 2016-10-24 11:38:29 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-10-24 11:38:29 +0000 |
commit | ea213ab0d2fecd61670c63e81c07428c49fbb003 (patch) | |
tree | 970fedacd90392d7773439241eb668a6166e57d6 /src/io/appium/droiddriver/uiautomation/UiAutomationElement.java | |
parent | 7ca70d735dcdda3a13b38e9ccf00c9193e736f5f (diff) | |
parent | 4138eed6f44e06a72c6adcad1892008eb4b701e8 (diff) | |
download | droiddriver-android-n-mr2-preview-2.tar.gz |
Merge "Revert "Fix code for more restrictive compiler [options]""android-o-preview-1android-n-mr2-preview-2android-n-mr2-preview-1o-preview
am: 4138eed6f4
Change-Id: Ic7e4a2e8a8096288980091a7a47af4ebd5463c0f
Diffstat (limited to 'src/io/appium/droiddriver/uiautomation/UiAutomationElement.java')
-rw-r--r-- | src/io/appium/droiddriver/uiautomation/UiAutomationElement.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/io/appium/droiddriver/uiautomation/UiAutomationElement.java b/src/io/appium/droiddriver/uiautomation/UiAutomationElement.java index c011749..cf7449e 100644 --- a/src/io/appium/droiddriver/uiautomation/UiAutomationElement.java +++ b/src/io/appium/droiddriver/uiautomation/UiAutomationElement.java @@ -141,9 +141,7 @@ public class UiAutomationElement extends BaseUiElement<AccessibilityNodeInfo, Ui Rect parentBounds; while (parent != null) { parentBounds = parent.getBounds(); - if (!visibleBounds.intersect(parentBounds)) { - return new Rect(); - } + visibleBounds.intersect(parentBounds); parent = parent.getParent(); } return visibleBounds; |