diff --git a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt index e5ee321e3..b3488d8b3 100644 --- a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt @@ -45,7 +45,7 @@ interface ReplaceRuleDao { ) fun findEnabledByScope(name: String, origin: String): List - @Query("select `group` from replace_rules") + @Query("select `group` from replace_rules where `group` is not null and `group` <> ''") fun liveGroup(): LiveData> @Query("select * from replace_rules where `group` like '%' || :group || '%'")