From 0ee30f2de20b3abb2bf50df769fcb8e862066e04 Mon Sep 17 00:00:00 2001 From: Tuomas Airaksinen Date: Thu, 24 Aug 2023 18:55:30 +0300 Subject: [PATCH] Fix crash --- db/src/main/java/net/bible/android/database/WorkspaceDao.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/src/main/java/net/bible/android/database/WorkspaceDao.kt b/db/src/main/java/net/bible/android/database/WorkspaceDao.kt index 9e595272c2..3c8d396307 100644 --- a/db/src/main/java/net/bible/android/database/WorkspaceDao.kt +++ b/db/src/main/java/net/bible/android/database/WorkspaceDao.kt @@ -19,6 +19,7 @@ package net.bible.android.database import androidx.room.Dao import androidx.room.Insert +import androidx.room.OnConflictStrategy import androidx.room.Query import androidx.room.Transaction import androidx.room.Update @@ -61,7 +62,7 @@ interface WorkspaceDao { @Insert fun insertWindow(window: WorkspaceEntities.Window) - @Insert fun insertHistoryItems(historyItems: List) + @Insert(onConflict = OnConflictStrategy.IGNORE) fun insertHistoryItems(historyItems: List) @Update fun updateWindows(windows: List)