mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
db: correct the paging filter comment
The downloaded statements are no longer the old hand-written text, and RawQuery invalidation comes from observedEntities, not the filter text.
This commit is contained in:
@@ -7,9 +7,8 @@ import com.subtracks.data.prefs.ArtistSort
|
|||||||
import com.subtracks.data.prefs.PlaylistSort
|
import com.subtracks.data.prefs.PlaylistSort
|
||||||
import com.subtracks.data.prefs.SortNameMode
|
import com.subtracks.data.prefs.SortNameMode
|
||||||
|
|
||||||
// The default filters never mention song_downloads, so the paging sources used without the
|
// The default filters intentionally omit song_downloads: the unfiltered lists do not need the
|
||||||
// Downloaded filter are not invalidated by download writes (including progress updates). The
|
// join, and their paging sources must not invalidate on download progress updates.
|
||||||
// downloaded variants are the same statements the hand-written queries used.
|
|
||||||
internal const val ALBUMS_FILTER = """
|
internal const val ALBUMS_FILTER = """
|
||||||
FROM albums WHERE sourceId = :sourceId
|
FROM albums WHERE sourceId = :sourceId
|
||||||
AND (:starredFilter = 0 OR (:starredFilter = 1 AND starred IS NOT NULL) OR (:starredFilter = 2 AND starred IS NULL))
|
AND (:starredFilter = 0 OR (:starredFilter = 1 AND starred IS NOT NULL) OR (:starredFilter = 2 AND starred IS NULL))
|
||||||
|
|||||||
Reference in New Issue
Block a user