android / android/android-test

UIScrollable.scrollIntoView- reload data while executed scrollToBeginning in the method

Abierto
#810 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
1.2k
Forks
342
Merge medio
11 h 29 min
PR fusionados (30 d)
2

Descripción

### Description
When UIScrollable.getChildByDescription starts working and goes to execute scrollIntoView, 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?

### Steps to Reproduce
RecyclerView with the required elements has a parent SwipeRefreshLayout.
Try calling the method UIScrollable.getChildByDescription (or UIScrollable.scrollIntoView) for element in RecyclerView.

### Expected Results
Scrolling is performed until the desired element is found.

### Actual Results
RecyclerView are reloaded and only then scrolling is performed until the required element is found
data reload happens because of this:
https://android.googlesource.com/platform/frameworks/testing/+/f612e6a05f47b28ae0f5715545658c08dd759dd7/uiautomator/library/src/com/android/uiautomator/core/UiScrollable.java#210

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con UiScrollable.java en la implementación enlazada de scrollToBeginning y, después, sigue UIScrollable.getChildByDescription y scrollIntoView en la reproducción que incluye RecyclerView dentro de SwipeRefreshLayout. Confirma si llegar al principio activa una recarga y considera el trabajo completo cuando se encuentre el elemento objetivo sin una recarga de datos innecesaria.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
mobile, testing
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.