Pārlūkot izejas kodu

rss源搜索增加注释字段 (#4572)

niuhb 1 gadu atpakaļ
vecāks
revīzija
5b89df600b

+ 3 - 1
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<List<RssSource>>
@@ -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<List<RssSource>>