Skip to content

Commit 3977606

Browse files
committed
Use proper flags for tracks not present in media store
I broke it while adding 'Sort by date' added
1 parent 990af1c commit 3977606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/musicplayer/helpers/SimpleMediaScanner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class SimpleMediaScanner(private val context: Application) {
359359
}
360360

361361
if (title.isNotEmpty()) {
362-
val track = Track(0, id, title, artist, path, duration, album, "", 0, trackId, folderName, 0, 0, year, dateAdded, FLAG_MANUAL_CACHE)
362+
val track = Track(0, id, title, artist, path, duration, album, "", 0, trackId, folderName, 0, 0, year, dateAdded, 0, FLAG_MANUAL_CACHE)
363363
// use hashCode() as id for tracking purposes, there's a very slim chance of collision
364364
track.mediaStoreId = track.hashCode().toLong()
365365
tracks.add(track)

0 commit comments

Comments
 (0)