Skip to content

Commit 76362a3

Browse files
committed
Fix remaining sumBy deprecation in LocalGenreRepository
Replaced sumBy with sumOf in LocalGenreRepository.kt which was causing build failures. This was the last remaining instance of the deprecated sumBy function.
1 parent 8545567 commit 76362a3

File tree

1 file changed

+1
-1
lines changed
  • android/mediaprovider/local/src/main/java/com/simplecityapps/localmediaprovider/local/repository

1 file changed

+1
-1
lines changed

android/mediaprovider/local/src/main/java/com/simplecityapps/localmediaprovider/local/repository/LocalGenreRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class LocalGenreRepository(
4646
com.simplecityapps.shuttle.model.Genre(
4747
entry.key,
4848
entry.value.size,
49-
entry.value.sumBy { song -> song.duration },
49+
entry.value.sumOf { song -> song.duration },
5050
entry.value.map { song -> song.mediaProvider }.distinct()
5151
)
5252
}

0 commit comments

Comments
 (0)