mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
show Portrait photos by default on Android 10+
This commit is contained in:
parent
6ff7ab4f69
commit
7605e90632
1 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
package com.simplemobiletools.gallery.pro.helpers
|
package com.simplemobiletools.gallery.pro.helpers
|
||||||
|
|
||||||
import com.simplemobiletools.commons.helpers.MONTH_SECONDS
|
import com.simplemobiletools.commons.helpers.MONTH_SECONDS
|
||||||
import com.simplemobiletools.commons.helpers.isPiePlus
|
import com.simplemobiletools.commons.helpers.isQPlus
|
||||||
|
|
||||||
// shared preferences
|
// shared preferences
|
||||||
const val DIRECTORY_SORT_ORDER = "directory_sort_order"
|
const val DIRECTORY_SORT_ORDER = "directory_sort_order"
|
||||||
|
@ -171,7 +171,13 @@ 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() = TYPE_IMAGES or TYPE_VIDEOS or TYPE_GIFS or TYPE_RAWS or TYPE_SVGS
|
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
|
||||||
|
}
|
||||||
|
|
||||||
const val LOCATION_INTERNAL = 1
|
const val LOCATION_INTERNAL = 1
|
||||||
const val LOCATION_SD = 2
|
const val LOCATION_SD = 2
|
||||||
|
|
Loading…
Reference in a new issue