From 0969226fd371851849bf4bfb3eeb44ede9a6b8ad Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:14:08 +0600 Subject: [PATCH] Fix crash when adding if there are more then 1 dupe (#7405) --- app/src/main/sqldelight/data/mangas.sq | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/sqldelight/data/mangas.sq b/app/src/main/sqldelight/data/mangas.sq index 38349cf958..19318b2054 100644 --- a/app/src/main/sqldelight/data/mangas.sq +++ b/app/src/main/sqldelight/data/mangas.sq @@ -63,7 +63,8 @@ SELECT * FROM mangas WHERE favorite = 1 AND LOWER(title) = :title -AND source != :source; +AND source != :source +LIMIT 1; resetViewerFlags: UPDATE mangas