Add cancel button to reader chapters dialog
This commit is contained in:
parent
b0bcad861f
commit
01d6dbba86
@ -25,6 +25,7 @@ class ReaderChapterDialog(private val activity: ReaderActivity) : ReaderChapterA
|
|||||||
dialog = MaterialDialog(activity)
|
dialog = MaterialDialog(activity)
|
||||||
.title(R.string.chapters)
|
.title(R.string.chapters)
|
||||||
.customView(view = binding.root)
|
.customView(view = binding.root)
|
||||||
|
.negativeButton(android.R.string.cancel)
|
||||||
.show {
|
.show {
|
||||||
adapter = ReaderChapterAdapter(this@ReaderChapterDialog)
|
adapter = ReaderChapterAdapter(this@ReaderChapterDialog)
|
||||||
binding.chapterRecycler.adapter = adapter
|
binding.chapterRecycler.adapter = adapter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user