properly handle authentication skipping at videos too

This commit is contained in:
tibbi 2020-04-20 22:21:25 +02:00
parent bc37181dfd
commit 0aa268ce29
2 changed files with 5 additions and 0 deletions

View file

@ -866,6 +866,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
if (isVideo) {
val extras = HashMap<String, Boolean>()
extras[SHOW_FAVORITES] = mPath == FAVORITES
if (shouldSkipAuthentication()) {
extras[SKIP_AUTHENTICATION] = true
}
openPath(path, false, extras)
} else {
Intent(this, ViewPagerActivity::class.java).apply {

View file

@ -225,6 +225,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
private fun sendViewPagerIntent(path: String) {
Intent(this, ViewPagerActivity::class.java).apply {
putExtra(SKIP_AUTHENTICATION, intent.getBooleanExtra(SKIP_AUTHENTICATION, false))
putExtra(SHOW_FAVORITES, intent.getBooleanExtra(SHOW_FAVORITES, false))
putExtra(IS_VIEW_INTENT, true)
putExtra(IS_FROM_GALLERY, mIsFromGallery)