pull/1352/head
gedoor 3 years ago
parent eacfb6caef
commit 3b522cfd8e
  1. 2
      app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  3. 2
      app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt
  4. 2
      app/src/main/java/io/legado/app/ui/rss/article/RssSortActivity.kt
  5. 2
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditViewModel.kt
  6. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt

@ -103,7 +103,7 @@ class AudioPlayActivity :
R.id.menu_copy_audio_url -> sendToClip(AudioPlayService.url)
R.id.menu_edit_source -> AudioPlay.bookSource?.let {
sourceEditResult.launch {
putExtra("data", it.bookSourceUrl)
putExtra("sourceUrl", it.bookSourceUrl)
}
}
}

@ -723,7 +723,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
override fun openSourceEditActivity() {
ReadBook.bookSource?.let {
sourceEditActivity.launch {
putExtra("data", it.bookSourceUrl)
putExtra("source", it.bookSourceUrl)
}
}
}

@ -170,7 +170,7 @@ class RssFragment : VMBaseFragment<RssSourceViewModel>(R.layout.fragment_rss),
override fun edit(rssSource: RssSource) {
startActivity<RssSourceEditActivity> {
putExtra("data", rssSource.sourceUrl)
putExtra("sourceUrl", rssSource.sourceUrl)
}
}

@ -72,7 +72,7 @@ class RssSortActivity : VMBaseActivity<ActivityRssArtivlesBinding, RssSortViewMo
R.id.menu_set_source_variable -> setSourceVariable()
R.id.menu_edit_source -> viewModel.rssSource?.sourceUrl?.let {
editSourceResult.launch {
putExtra("data", it)
putExtra("sourceUrl", it)
}
}
R.id.menu_clear -> {

@ -15,7 +15,7 @@ class RssSourceEditViewModel(application: Application) : BaseViewModel(applicati
fun initData(intent: Intent, onFinally: () -> Unit) {
execute {
val key = intent.getStringExtra("data")
val key = intent.getStringExtra("sourceUrl")
if (key != null) {
appDb.rssSourceDao.getByKey(key)?.let {
rssSource = it

@ -305,7 +305,7 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView
override fun edit(source: RssSource) {
startActivity<RssSourceEditActivity> {
putExtra("data", source.sourceUrl)
putExtra("sourceUrl", source.sourceUrl)
}
}

Loading…
Cancel
Save