From e7406110a1b5590be4b80e98f4101215d000f0e7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 15 Jun 2017 21:27:43 +0200 Subject: [PATCH] send a notifyDataSetChanged to the viewpager adapter at fullscreen media --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index fbd122166..7f6ec0753 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -228,6 +228,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View adapter = pagerAdapter currentItem = mPos addOnPageChangeListener(this@ViewPagerActivity) + adapter!!.notifyDataSetChanged() } } }