@ -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("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) {
putExtra("data", source.sourceUrl)
putExtra("sourceUrl", source.sourceUrl)