Mercurial > dwindows
changeset 2669:2ad924c6493d
Android: Still need to call setCurrentItem() on ViewPager2.
RecyclerView.scrollToPosition() doesn't update currentItem...
causing OutOfBounds exceptions when accessing the lists.
Need to implement the DW_SIGNAL_DELETE callback.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 17 Oct 2021 20:14:51 +0000 |
parents | 917f2d1f9cae |
children | e3a95940c18f |
files | android/DWindows.kt |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/android/DWindows.kt Sun Oct 17 00:34:16 2021 +0000 +++ b/android/DWindows.kt Sun Oct 17 20:14:51 2021 +0000 @@ -1421,8 +1421,8 @@ adapter.recyclerView!!.scrollToPosition(index) } // This is how I prefered to do it, but it doesn't work... - // So using he RecyclerView.scrollToPosition() instead - //windowLayout!!.setCurrentItem(index, true) + // So using RecyclerView.scrollToPosition() also + windowLayout!!.setCurrentItem(index, true) // If the new view has a default item, focus it if(windowDefault[index] != null) {