mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix remove and adapter position
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
7dfc56c7e2
commit
60571635f4
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue