pull/32/head
kunfei 5 years ago
parent 381cf86bf0
commit 5484141707
  1. 2
      app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt

@ -34,6 +34,6 @@ class RssFragment : BaseFragment(R.layout.fragment_rss) {
private fun initData() {
rssLiveData?.removeObservers(viewLifecycleOwner)
rssLiveData = LivePagedListBuilder(App.db.rssSourceDao().observeEnabled(), 50).build()
rssLiveData?.observe(viewLifecycleOwner, Observer { })
rssLiveData?.observe(viewLifecycleOwner, Observer { adapter.submitList(it) })
}
}
Loading…
Cancel
Save