(playlistId, songId) is the playlist_songs PK, so a second @Insert of the same pair threw UNIQUE constraint failed and killed the app (reproduced twice in the crash buffer on 10-03). Switch to OnConflictStrategy.IGNORE: duplicate add is now a silent no-op. Verified on-device on 0.1.5 (7): re-adding 'The Humbling River' to FAVORITES keeps the song list intact, 0 FATALs, no new crash-buffer entries. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||