Fix focus getting stuck by cycling within the same list item
This commit is contained in:
parent
fa6823599a
commit
1cc5a67d82
|
@ -98,6 +98,12 @@ public final class SuperScrollLayoutManager extends LinearLayoutManager {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (view == focusedItem) {
|
||||||
|
// do not pass focus back to the item View itself - it makes no sense
|
||||||
|
// (we can still pass focus to it's children however)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int candidate = getDistance(sourcePosition, view, listDirection);
|
int candidate = getDistance(sourcePosition, view, listDirection);
|
||||||
if (candidate < 0) {
|
if (candidate < 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue