|
|
@ -81,9 +81,11 @@ class ReadBookActivity : ReadBookBaseActivity(), |
|
|
|
private val sourceEditActivity = |
|
|
|
private val sourceEditActivity = |
|
|
|
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { |
|
|
|
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { |
|
|
|
if (it.resultCode == RESULT_OK) { |
|
|
|
if (it.resultCode == RESULT_OK) { |
|
|
|
|
|
|
|
viewModel.upBookSource { |
|
|
|
upView() |
|
|
|
upView() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
private val replaceActivity = |
|
|
|
private val replaceActivity = |
|
|
|
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { |
|
|
|
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { |
|
|
|
if (it.resultCode == RESULT_OK) { |
|
|
|
if (it.resultCode == RESULT_OK) { |
|
|
|