From 83507d153eb3599a7a72905180f0a76bc632363c Mon Sep 17 00:00:00 2001 From: niuhb <76513019+niu-hb@users.noreply.github.com> Date: Sat, 25 Jan 2025 10:06:56 +0800 Subject: [PATCH] =?UTF-8?q?rss=E6=BA=90=E6=90=9C=E7=B4=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A=E5=AD=97=E6=AE=B5=20(#4572)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt b/app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt index 9846e6741783..0d6fcd9c5b5b 100644 --- a/app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt @@ -38,6 +38,7 @@ interface RssSourceDao { where sourceName like '%' || :key || '%' or sourceUrl like '%' || :key || '%' or sourceGroup like '%' || :key || '%' + or sourceComment like '%' || :key || '%' order by customOrder""" ) fun flowSearch(key: String): Flow> @@ -69,7 +70,8 @@ interface RssSourceDao { where enabled = 1 and (sourceName like '%' || :searchKey || '%' or sourceGroup like '%' || :searchKey || '%' - or sourceUrl like '%' || :searchKey || '%') + or sourceUrl like '%' || :searchKey || '%' + or sourceComment like '%' || :searchKey || '%') order by customOrder""" ) fun flowEnabled(searchKey: String): Flow>