mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-02 20:46:44 +01:00
properly handle authentication skipping at videos too
This commit is contained in:
parent
bc37181dfd
commit
0aa268ce29
@ -866,6 +866,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||||||
if (isVideo) {
|
if (isVideo) {
|
||||||
val extras = HashMap<String, Boolean>()
|
val extras = HashMap<String, Boolean>()
|
||||||
extras[SHOW_FAVORITES] = mPath == FAVORITES
|
extras[SHOW_FAVORITES] = mPath == FAVORITES
|
||||||
|
|
||||||
|
if (shouldSkipAuthentication()) {
|
||||||
|
extras[SKIP_AUTHENTICATION] = true
|
||||||
|
}
|
||||||
openPath(path, false, extras)
|
openPath(path, false, extras)
|
||||||
} else {
|
} else {
|
||||||
Intent(this, ViewPagerActivity::class.java).apply {
|
Intent(this, ViewPagerActivity::class.java).apply {
|
||||||
|
@ -225,6 +225,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||||||
|
|
||||||
private fun sendViewPagerIntent(path: String) {
|
private fun sendViewPagerIntent(path: String) {
|
||||||
Intent(this, ViewPagerActivity::class.java).apply {
|
Intent(this, ViewPagerActivity::class.java).apply {
|
||||||
|
putExtra(SKIP_AUTHENTICATION, intent.getBooleanExtra(SKIP_AUTHENTICATION, false))
|
||||||
putExtra(SHOW_FAVORITES, intent.getBooleanExtra(SHOW_FAVORITES, false))
|
putExtra(SHOW_FAVORITES, intent.getBooleanExtra(SHOW_FAVORITES, false))
|
||||||
putExtra(IS_VIEW_INTENT, true)
|
putExtra(IS_VIEW_INTENT, true)
|
||||||
putExtra(IS_FROM_GALLERY, mIsFromGallery)
|
putExtra(IS_FROM_GALLERY, mIsFromGallery)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user