Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Feb 15, 2024
1 parent af8ab5f commit 7d1f582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ android {
applicationId = "org.akanework.gramophone"
minSdk = 21
targetSdk = 34
versionCode = 3
versionCode = 4
versionName =
"1.0.2" + "." + "git rev-parse --short=6 HEAD".runCommand(workingDir = rootDir)
"1.0.3" + "." + "git rev-parse --short=6 HEAD".runCommand(workingDir = rootDir)
buildConfigField(
"String",
"RELEASE_TYPE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ object MediaStoreUtils {
null,
MediaStore.Audio.Media.TITLE + " COLLATE UNICODE ASC",
)
val recentlyAddedMap = PriorityQueue<Pair<Long, MediaItem>>(cursor?.count ?: 2,
val recentlyAddedMap = PriorityQueue<Pair<Long, MediaItem>>(
(cursor?.count ?: 0).coerceAtLeast(2),
Comparator { a, b ->
// reversed int order
return@Comparator if (a.first == b.first) 0 else (if (a.first > b.first) -1 else 1)
Expand Down

0 comments on commit 7d1f582

Please sign in to comment.