From 2a353df76ac0ec27688b735cf49fb63b4473a797 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 26 Apr 2020 11:40:20 +0200 Subject: [PATCH] lets disable Portrait file displaying by default, until it gets improved --- .../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 9e4c19f12..35933b7df 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 types = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS - if (isPiePlus()) { - types += TYPE_PORTRAITS - } - return types -} +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