Merge branch 'main' into main

This commit is contained in:
whe128 2024-10-22 08:09:30 +11:00 committed by GitHub
commit f7f2d4a904
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,9 +285,11 @@ class ImageFragment :
imageAdapter.notifyDataSetChanged() imageAdapter.notifyDataSetChanged()
selectorRV?.let { selectorRV?.let {
it.visibility = View.VISIBLE it.visibility = View.VISIBLE
lastItemId?.let { pos -> if (switch?.isChecked == false) {
(it.layoutManager as GridLayoutManager) lastItemId?.let { pos ->
.scrollToPosition(ImageHelper.getIndexFromId(filteredImages, pos)) (it.layoutManager as GridLayoutManager)
.scrollToPosition(ImageHelper.getIndexFromId(filteredImages, pos))
}
} }
} }
} else { } else {