make sure we sort the Favorites properly
This commit is contained in:
parent
d4fe872a3a
commit
b81e1c2172
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage
|
|||
media
|
||||
} else {
|
||||
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 {
|
||||
mediaFetcher.getFilesFrom(mPath, isPickImage, isPickVideo, getProperDateTaken, favoritePaths)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue