pull/35/head^2
kunfei 5 years ago
parent 7bd457626e
commit 223564a866
  1. 1
      app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt
  2. 6
      app/src/main/java/io/legado/app/ui/rss/article/RssArticlesAdapter.kt

@ -65,5 +65,6 @@ class RssArticlesActivity : VMBaseActivity<RssArticlesViewModel>(R.layout.activi
Pair("description", rssArticle.description), Pair("description", rssArticle.description),
Pair("url", rssArticle.link) Pair("url", rssArticle.link)
) )
viewModel.read(rssArticle)
} }
} }

@ -10,6 +10,7 @@ import io.legado.app.utils.gone
import io.legado.app.utils.visible import io.legado.app.utils.visible
import kotlinx.android.synthetic.main.item_rss_article.view.* import kotlinx.android.synthetic.main.item_rss_article.view.*
import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.sdk27.listeners.onClick
import org.jetbrains.anko.textColorResource
class RssArticlesAdapter(context: Context, val callBack: CallBack) : class RssArticlesAdapter(context: Context, val callBack: CallBack) :
@ -29,6 +30,11 @@ class RssArticlesAdapter(context: Context, val callBack: CallBack) :
ImageLoader.load(context, item.image) ImageLoader.load(context, item.image)
.setAsBitmap(image_view) .setAsBitmap(image_view)
} }
if (item.read) {
tv_title.textColorResource = R.color.tv_text_secondary
} else {
tv_title.textColorResource = R.color.tv_text_default
}
} }
} }

Loading…
Cancel
Save