mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 16:08:00 +01:00
Clear cached media only for external intents
This commit is contained in:
parent
db6400c526
commit
a8bfae66a7
1 changed files with 3 additions and 1 deletions
|
@ -288,7 +288,9 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun openViewPager(path: String) {
|
private fun openViewPager(path: String) {
|
||||||
|
if (!intent.getBooleanExtra(IS_FROM_GALLERY, false)) {
|
||||||
MediaActivity.mMedia.clear()
|
MediaActivity.mMedia.clear()
|
||||||
|
}
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
Intent(this, ViewPagerActivity::class.java).apply {
|
Intent(this, ViewPagerActivity::class.java).apply {
|
||||||
|
|
Loading…
Reference in a new issue