fix(playlists): re-adding a song to a playlist crashed with SQLiteConstraintException

(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.
This commit is contained in:
avi 2026-10-03 19:43:44 -05:00
commit bf9222ab0d
2 changed files with 6 additions and 3 deletions

View file

@ -15,8 +15,8 @@ android {
applicationId = "com.rada"
minSdk = 26
targetSdk = 35
versionCode = 6
versionName = "0.1.4"
versionCode = 7
versionName = "0.1.5"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}