|
|
@ -54,9 +54,7 @@ class BookSourceEditActivity : |
|
|
|
viewModel.sourceLiveData.observe(this, Observer { |
|
|
|
viewModel.sourceLiveData.observe(this, Observer { |
|
|
|
upRecyclerView(it) |
|
|
|
upRecyclerView(it) |
|
|
|
}) |
|
|
|
}) |
|
|
|
intent.getStringExtra("data")?.let { |
|
|
|
viewModel.setBookSource(intent.getStringExtra("data")) |
|
|
|
viewModel.setBookSource(it) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onDestroy() { |
|
|
|
override fun onDestroy() { |
|
|
@ -113,7 +111,6 @@ class BookSourceEditActivity : |
|
|
|
setEditEntities(tab?.position) |
|
|
|
setEditEntities(tab?.position) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
upRecyclerView(null) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun setEditEntities(tabPosition: Int?) { |
|
|
|
private fun setEditEntities(tabPosition: Int?) { |
|
|
|