testing-samples
testing-samples copied to clipboard
UIScrollable.getChildByDescription - reload data while executed scrollToBeginning in the method
When UIScrollable.getChildByDescription starts working, first it does scrollToBeginning (which provokes updating of the list if the list is at the beginning), and only then it scrolls down and finds the desired element. How can I disable updating the list if the list is already at the beginning?
scrollToBeginning: https://android.googlesource.com/platform/frameworks/testing/+/f612e6a05f47b28ae0f5715545658c08dd759dd7/uiautomator/library/src/com/android/uiautomator/core/UiScrollable.java#210