mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fix a glitch at allowing adding multiple items to an email attachment
This commit is contained in:
@@ -53,6 +53,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
private var mIsGetVideoContentIntent = false
|
private var mIsGetVideoContentIntent = false
|
||||||
private var mIsGetAnyContentIntent = false
|
private var mIsGetAnyContentIntent = false
|
||||||
private var mIsSetWallpaperIntent = false
|
private var mIsSetWallpaperIntent = false
|
||||||
|
private var mAllowPickingMultiple = false
|
||||||
private var mIsThirdPartyIntent = false
|
private var mIsThirdPartyIntent = false
|
||||||
private var mIsGettingDirs = false
|
private var mIsGettingDirs = false
|
||||||
private var mStoredAnimateGifs = true
|
private var mStoredAnimateGifs = true
|
||||||
@@ -74,6 +75,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
mIsGetVideoContentIntent = isGetVideoContentIntent(intent)
|
mIsGetVideoContentIntent = isGetVideoContentIntent(intent)
|
||||||
mIsGetAnyContentIntent = isGetAnyContentIntent(intent)
|
mIsGetAnyContentIntent = isGetAnyContentIntent(intent)
|
||||||
mIsSetWallpaperIntent = isSetWallpaperIntent(intent)
|
mIsSetWallpaperIntent = isSetWallpaperIntent(intent)
|
||||||
|
mAllowPickingMultiple = intent.getBooleanExtra(Intent.EXTRA_ALLOW_MULTIPLE, false)
|
||||||
mIsThirdPartyIntent = mIsPickImageIntent || mIsPickVideoIntent || mIsGetImageContentIntent || mIsGetVideoContentIntent ||
|
mIsThirdPartyIntent = mIsPickImageIntent || mIsPickVideoIntent || mIsGetImageContentIntent || mIsGetVideoContentIntent ||
|
||||||
mIsGetAnyContentIntent || mIsSetWallpaperIntent
|
mIsGetAnyContentIntent || mIsSetWallpaperIntent
|
||||||
|
|
||||||
@@ -495,7 +497,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
putExtra(GET_IMAGE_INTENT, mIsPickImageIntent || mIsGetImageContentIntent)
|
putExtra(GET_IMAGE_INTENT, mIsPickImageIntent || mIsGetImageContentIntent)
|
||||||
putExtra(GET_VIDEO_INTENT, mIsPickVideoIntent || mIsGetVideoContentIntent)
|
putExtra(GET_VIDEO_INTENT, mIsPickVideoIntent || mIsGetVideoContentIntent)
|
||||||
putExtra(GET_ANY_INTENT, mIsGetAnyContentIntent)
|
putExtra(GET_ANY_INTENT, mIsGetAnyContentIntent)
|
||||||
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, intent.getBooleanExtra(Intent.EXTRA_ALLOW_MULTIPLE, false))
|
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, mAllowPickingMultiple)
|
||||||
startActivityForResult(this, PICK_MEDIA)
|
startActivityForResult(this, PICK_MEDIA)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user