mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 14:28:00 +01:00
reload the viewpager after editing an image
This commit is contained in:
parent
6449316f47
commit
ae927425aa
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||||
if (requestCode == REQUEST_EDIT_IMAGE) {
|
if (requestCode == REQUEST_EDIT_IMAGE) {
|
||||||
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
||||||
val adapter = view_pager.adapter as MyPagerAdapter
|
mPos = -1
|
||||||
adapter.updateItems(mPos)
|
reloadViewPager()
|
||||||
}
|
}
|
||||||
} else if (requestCode == REQUEST_SET_WALLPAPER) {
|
} else if (requestCode == REQUEST_SET_WALLPAPER) {
|
||||||
if (resultCode == Activity.RESULT_OK) {
|
if (resultCode == Activity.RESULT_OK) {
|
||||||
|
|
Loading…
Reference in a new issue