pull/1238/head
gedoor 3 years ago
parent 986d6f5d0f
commit 35f51e8f51
  1. 2
      app/src/main/java/io/legado/app/ui/book/toc/BookmarkDialog.kt

@ -10,6 +10,7 @@ import io.legado.app.base.BaseDialogFragment
import io.legado.app.data.appDb
import io.legado.app.data.entities.Bookmark
import io.legado.app.databinding.DialogBookmarkBinding
import io.legado.app.lib.theme.primaryColor
import io.legado.app.utils.viewbindingdelegate.viewBinding
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.launch
@ -48,6 +49,7 @@ class BookmarkDialog : BaseDialogFragment() {
}
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
binding.toolBar.setBackgroundColor(primaryColor)
val bookmark = arguments?.getParcelable<Bookmark>("bookmark")
bookmark ?: let {
dismiss()

Loading…
Cancel
Save