properly handle authentication skipping at videos too
This commit is contained in:
parent
bc37181dfd
commit
0aa268ce29
2 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue