优化
This commit is contained in:
1 parent
f5a25141de
commit
c60ade19eb
1 file changed
+7
@@ -54,6 +54,13 @@ class ContentEditDialog : BaseDialogFragment(R.layout.dialog_content_edit) {
|
|||||||
}
|
}
|
||||||
viewModel.initContent {
|
viewModel.initContent {
|
||||||
binding.contentView.setText(it)
|
binding.contentView.setText(it)
|
||||||
|
binding.contentView.post {
|
||||||
|
binding.contentView.apply {
|
||||||
|
val lineIndex = layout.getLineForOffset(ReadBook.durChapterPos)
|
||||||
|
val lineHeight = layout.getLineTop(lineIndex)
|
||||||
|
scrollTo(0, lineHeight)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user