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()
selectorRV?.let {
it.visibility = View.VISIBLE
lastItemId?.let { pos ->
(it.layoutManager as GridLayoutManager)
.scrollToPosition(ImageHelper.getIndexFromId(filteredImages, pos))
if (switch?.isChecked == false) {
lastItemId?.let { pos ->
(it.layoutManager as GridLayoutManager)
.scrollToPosition(ImageHelper.getIndexFromId(filteredImages, pos))
}
}
}
} else {