From 080e7e983dace3e852aa922b57ea9b24eb6a5695 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 14 Feb 2022 10:48:19 +0100 Subject: [PATCH] clear cached media at launching viewpager at third party intent --- app/build.gradle | 2 +- .../gallery/pro/activities/PhotoVideoActivity.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 51e6a283a..4cde8a140 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -77,7 +77,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:a413eb66d0' + implementation 'com.github.SimpleMobileTools:Simple-Commons:bbd4b9c241' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/PhotoVideoActivity.kt index 1841650c0..8eb54f154 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/PhotoVideoActivity.kt @@ -230,6 +230,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList } private fun sendViewPagerIntent(path: String) { + MediaActivity.mMedia.clear() hideKeyboard() Intent(this, ViewPagerActivity::class.java).apply { putExtra(SKIP_AUTHENTICATION, intent.getBooleanExtra(SKIP_AUTHENTICATION, false))