Add cancel button to reader chapters dialog

This commit is contained in:
Jobobby04 2021-06-02 17:34:08 -04:00
parent b0bcad861f
commit 01d6dbba86

View File

@ -25,6 +25,7 @@ class ReaderChapterDialog(private val activity: ReaderActivity) : ReaderChapterA
dialog = MaterialDialog(activity)
.title(R.string.chapters)
.customView(view = binding.root)
.negativeButton(android.R.string.cancel)
.show {
adapter = ReaderChapterAdapter(this@ReaderChapterDialog)
binding.chapterRecycler.adapter = adapter