android / android/android-test
UIScrollable.scrollIntoView- reload data while executed scrollToBeginning in the method
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 342
- Merge medio
- 11h 29m
- PR unite (30g)
- 2
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da UiScrollable.java, nell’implementazione collegata di scrollToBeginning, quindi segui UIScrollable.getChildByDescription e scrollIntoView nella riproduzione che coinvolge RecyclerView all’interno di SwipeRefreshLayout. Verifica se raggiungere l’inizio attiva un ricaricamento e considera il lavoro completato quando l’elemento di destinazione viene trovato senza un ricaricamento dei dati non necessario.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- mobile, testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100