From 7e69c392a444f8fb321c253bd451044555e8a1c2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 9 Sep 2020 21:32:35 +0200 Subject: [PATCH] do not show Portrait files on Android 11 by default --- .../simplemobiletools/gallery/pro/helpers/Constants.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Constants.kt index c7890b82f..87fa595a8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Constants.kt @@ -171,13 +171,7 @@ const val TYPE_RAWS = 8 const val TYPE_SVGS = 16 const val TYPE_PORTRAITS = 32 -fun getDefaultFileFilter(): Int { - var mask = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS - if (isQPlus()) { - mask += TYPE_PORTRAITS - } - return mask -} +fun getDefaultFileFilter() = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS const val LOCATION_INTERNAL = 1 const val LOCATION_SD = 2