make sure we sort the Favorites properly
This commit is contained in:
parent
d4fe872a3a
commit
b81e1c2172
|
@ -31,7 +31,9 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage
|
||||||
media
|
media
|
||||||
} else {
|
} else {
|
||||||
if (mPath == FAVORITES) {
|
if (mPath == FAVORITES) {
|
||||||
context.galleryDB.MediumDao().getFavorites() as ArrayList<Medium>
|
val media = context.galleryDB.MediumDao().getFavorites() as ArrayList<Medium>
|
||||||
|
mediaFetcher.sortMedia(media, context.config.getFileSorting(mPath))
|
||||||
|
media
|
||||||
} else {
|
} else {
|
||||||
mediaFetcher.getFilesFrom(mPath, isPickImage, isPickVideo, getProperDateTaken, favoritePaths)
|
mediaFetcher.getFilesFrom(mPath, isPickImage, isPickVideo, getProperDateTaken, favoritePaths)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue