check 2 more parents if they contain a .nomedia file

This commit is contained in:
tibbi 2018-02-20 20:09:44 +01:00
parent 6d806035ee
commit a70ac7c825

View file

@ -62,7 +62,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
} }
} }
if (File(parentDir).containsNoMedia()) { if (File(parentDir).containsNoMedia() || File(parentDir).parentFile?.containsNoMedia() == true || File(parentDir).parentFile?.parentFile?.containsNoMedia() == true) {
dirName += " $hidden" dirName += " $hidden"
} }