Clear cached media only for external intents
This commit is contained in:
parent
db6400c526
commit
a8bfae66a7
|
@ -288,7 +288,9 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||
}
|
||||
|
||||
private fun openViewPager(path: String) {
|
||||
MediaActivity.mMedia.clear()
|
||||
if (!intent.getBooleanExtra(IS_FROM_GALLERY, false)) {
|
||||
MediaActivity.mMedia.clear()
|
||||
}
|
||||
runOnUiThread {
|
||||
hideKeyboard()
|
||||
Intent(this, ViewPagerActivity::class.java).apply {
|
||||
|
|
Loading…
Reference in New Issue