|
@@ -301,6 +301,11 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
container.addView(readerView)
|
|
container.addView(readerView)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ override fun onDestroy() {
|
|
|
|
+ viewModel.saveModifyingAnnotationBeforeDestroy()
|
|
|
|
+ super.onDestroy()
|
|
|
|
+ }
|
|
|
|
+
|
|
private fun onPageIndexChanged(pageIndex: Int?) {
|
|
private fun onPageIndexChanged(pageIndex: Int?) {
|
|
pageIndex?.let {
|
|
pageIndex?.let {
|
|
viewModel.setBookmarkDisplay(pageIndex)
|
|
viewModel.setBookmarkDisplay(pageIndex)
|