do not show Portrait files on Android 11 by default

This commit is contained in:
tibbi 2020-09-09 21:32:35 +02:00
parent e09151a511
commit 7e69c392a4

View file

@ -171,13 +171,7 @@ const val TYPE_RAWS = 8
const val TYPE_SVGS = 16 const val TYPE_SVGS = 16
const val TYPE_PORTRAITS = 32 const val TYPE_PORTRAITS = 32
fun getDefaultFileFilter(): Int { fun getDefaultFileFilter() = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS
var mask = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS
if (isQPlus()) {
mask += TYPE_PORTRAITS
}
return mask
}
const val LOCATION_INTERNAL = 1 const val LOCATION_INTERNAL = 1
const val LOCATION_SD = 2 const val LOCATION_SD = 2