mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
reload the viewpager after editing an image
This commit is contained in:
@ -180,8 +180,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||
if (requestCode == REQUEST_EDIT_IMAGE) {
|
||||
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
||||
val adapter = view_pager.adapter as MyPagerAdapter
|
||||
adapter.updateItems(mPos)
|
||||
mPos = -1
|
||||
reloadViewPager()
|
||||
}
|
||||
} else if (requestCode == REQUEST_SET_WALLPAPER) {
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
|
Reference in New Issue
Block a user