Glimpse: MediaViewerFragment: Reload current page content when cursor changes

Change-Id: I0af966fc9060baf3aabda9d04516d0749e20ebf5
This commit is contained in:
Sebastiano Barezzi 2023-08-06 18:26:56 +02:00
parent e048906a31
commit d491334a6d
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ class MediaViewerFragment : Fragment(
override fun onLoadFinished(loader: Loader<Cursor>, data: Cursor?) {
mediaViewerAdapter.changeCursor(data)
viewPager.setCurrentItem(position, false)
onPageChangeCallback.onPageSelected(position)
}
private fun initCursorLoader() {