mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 12:30:36 +01:00
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
|
||||
} 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…
x
Reference in New Issue
Block a user