Fix remove and adapter position

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-07-30 16:08:42 +02:00
parent 7dfc56c7e2
commit 60571635f4
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -258,8 +258,12 @@ class PreviewImageActivity : FileActivity(), FileFragment.ContainerActivity, OnR
}
}
viewPager?.setCurrentItem(nextPosition, true)
if (user.isPresent) {
initViewPager(user.get())
}
previewImagePagerAdapter?.delete(deletePosition)
viewPager?.setCurrentItem(nextPosition, true)
} else if (operation is SynchronizeFileOperation) {
onSynchronizeFileOperationFinish(result)
}