Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make View.getXY() work w/ UIAutomator
UIAutomator xml file returns bounds of view in global (screen) coords, not relative to parent window(s), view(s), or statusbar. View.getXY() is adapted to not do coordinate translation when UIAutomator is being used. Tests done: 4.2.0 nexus phone - sample-ui-toggle-buttons.py 4.2.0 nexus phone - apidemos-app-alert_dialog-list_dialog-command_three.py 4.2.0 nexus phone - browser-open-url.py (Fails both with and without patch) 4.2.0 nexus phone - development-settings-show-running-processes.py (Fails both with and without patch) 4.2.0 emulator - sample-ui-toggle-buttons.py 4.0.3 emulator - sample-ui-toggle-buttons.py 4.0.3 emulator - apidemos-app-alert_dialog-list_dialog-command_three.py 4.0.3 emulator - browser-open-url.py 4.0.3 emulator - development-settings-show-running-processes.py Signed-off-by: Matt Gumbel <[email protected]>
- Loading branch information