|
|
@ -83,10 +83,9 @@ class BookmarkFragment : VMBaseFragment<ChapterListViewModel>(R.layout.fragment_ |
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("InflateParams") |
|
|
|
@SuppressLint("InflateParams") |
|
|
|
override fun onLongClick(bookmark: Bookmark) { |
|
|
|
override fun onLongClick(bookmark: Bookmark) { |
|
|
|
viewModel.book?.let { book -> |
|
|
|
|
|
|
|
requireContext().alert(R.string.bookmark) { |
|
|
|
requireContext().alert(R.string.bookmark) { |
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater) |
|
|
|
val alertBinding = DialogEditTextBinding.inflate(layoutInflater) |
|
|
|
message = book.name + " • " + bookmark.chapterName |
|
|
|
message = bookmark.bookText |
|
|
|
customView { |
|
|
|
customView { |
|
|
|
alertBinding.apply { |
|
|
|
alertBinding.apply { |
|
|
|
editView.setHint(R.string.note_content) |
|
|
|
editView.setHint(R.string.note_content) |
|
|
@ -105,5 +104,4 @@ class BookmarkFragment : VMBaseFragment<ChapterListViewModel>(R.layout.fragment_ |
|
|
|
} |
|
|
|
} |
|
|
|
}.show().requestInputMethod() |
|
|
|
}.show().requestInputMethod() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |