添加源地址订阅功能

pull/517/head
gedoor 4 years ago
parent c33fe20915
commit 7c9b461347
  1. 2
      app/src/main/AndroidManifest.xml
  2. 5
      app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt
  3. 2
      app/src/main/java/io/legado/app/ui/rss/subscription/SourceSubActivity.kt

@ -173,7 +173,7 @@
android:launchMode="singleTask" />
<!-- 源订阅 -->
<activity
android:name=".ui.rss.subscription.SourceSubscriptionActivity"
android:name=".ui.rss.subscription.SourceSubActivity"
android:launchMode="singleTask" />
<!-- 书源编辑 -->
<activity

@ -17,7 +17,8 @@ import io.legado.app.ui.rss.favorites.RssFavoritesActivity
import io.legado.app.ui.rss.source.edit.RssSourceEditActivity
import io.legado.app.ui.rss.source.manage.RssSourceActivity
import io.legado.app.ui.rss.source.manage.RssSourceViewModel
import io.legado.app.ui.rss.subscription.SourceSubscription
import io.legado.app.ui.rss.subscription.SourceSubActivity
import io.legado.app.utils.getViewModel
import io.legado.app.utils.startActivity
import io.legado.app.utils.viewbindingdelegate.viewBinding
@ -60,7 +61,7 @@ class RssFragment : VMBaseFragment<RssSourceViewModel>(R.layout.fragment_rss),
tvName.setText(R.string.source_subscription)
ivIcon.setImageResource(R.mipmap.ic_launcher)
root.onClick {
startActivity<SourceSubscription>()
startActivity<SourceSubActivity>()
}
}
}

@ -10,7 +10,7 @@ import io.legado.app.base.BaseActivity
import io.legado.app.data.entities.SourceSub
import io.legado.app.databinding.ActivitySourceSubBinding
class SourceSubscriptionActivity : BaseActivity<ActivitySourceSubBinding>() {
class SourceSubActivity : BaseActivity<ActivitySourceSubBinding>() {
private lateinit var adapter: SourceSubAdapter
private var liveData: LiveData<List<SourceSub>>? = null

Loading…
Cancel
Save