mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
fix third party intent handling if selected folder contains .nomedia
This commit is contained in:
parent
12ed80c51e
commit
a9d5604843
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
||||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||||
val realPath = intent.extras!!.getString(REAL_FILE_PATH)
|
val realPath = intent.extras!!.getString(REAL_FILE_PATH)
|
||||||
if (realPath != null && getDoesFilePathExist(realPath)) {
|
if (realPath != null && getDoesFilePathExist(realPath)) {
|
||||||
val avoidShowingHiddenFiles = isRPlus() && File(realPath).isHidden
|
val avoidShowingHiddenFiles = isRPlus() && (File(realPath).isHidden || File(realPath.getParentPath(), NOMEDIA).exists())
|
||||||
if (!avoidShowingHiddenFiles) {
|
if (!avoidShowingHiddenFiles) {
|
||||||
if (realPath.getFilenameFromPath().contains('.') || filename.contains('.')) {
|
if (realPath.getFilenameFromPath().contains('.') || filename.contains('.')) {
|
||||||
if (isFileTypeVisible(realPath)) {
|
if (isFileTypeVisible(realPath)) {
|
||||||
|
|
Loading…
Reference in a new issue