Skip to content

Commit 1785429

Browse files
committed
fix: don't crash when visiting too many releases with many tracks
because this would save every track's UUID and recording UUID string representation in a parcel, we can easily reach the 1MB limit and get a TransactionTooLargeException
1 parent b0f8a26 commit 1785429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/common/src/commonMain/kotlin/ly/david/musicsearch/ui/common/track/TracksByReleasePresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TracksByReleasePresenter(
4848
// tracks is special in that all are cached at once
4949
// For other screens, it's possible new remote data appears as the user scrolls,
5050
// but then it would just be similar to now where they can click select all again to pick up the new data.
51-
val trackIds: List<SelectableId> by rememberSaveable(releaseId) {
51+
val trackIds: List<SelectableId> by rememberRetained(releaseId) {
5252
mutableStateOf(getTracksIdsByRelease(releaseId))
5353
}
5454
val lazyListState: LazyListState = rememberLazyListState()

0 commit comments

Comments
 (0)