From 9dffaf39b4cd6c784f7fbbb476ed518889e674b9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 2 Oct 2019 17:07:08 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt b/app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt index c90766948..caa2fb293 100644 --- a/app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt @@ -1,14 +1,15 @@ package io.legado.app.data.dao import androidx.lifecycle.LiveData +import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import io.legado.app.data.entities.RssArticle +@Dao interface RssArticleDao { - @Query("select * from rssArticles where origin = :origin order by time desc") fun liveByOrigin(origin: String): LiveData>