mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixed #397 - Add to manga dialog not removing from library on cancel
This commit is contained in:
parent
f5f4b8a119
commit
231c7f5bf3
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.ui.library
|
|||
import android.app.Dialog
|
||||
import android.os.Bundle
|
||||
import com.afollestad.materialdialogs.MaterialDialog
|
||||
import com.afollestad.materialdialogs.callbacks.onCancel
|
||||
import com.afollestad.materialdialogs.list.listItemsMultiChoice
|
||||
import com.bluelinelabs.conductor.Controller
|
||||
import eu.kanade.tachiyomi.R
|
||||
|
@ -54,6 +55,9 @@ class AddToLibraryCategoriesDialog<T>(bundle: Bundle? = null) :
|
|||
.negativeButton(android.R.string.cancel) {
|
||||
(targetController as? Listener)?.addToLibraryCancelled(manga, position)
|
||||
}
|
||||
.onCancel {
|
||||
(targetController as? Listener)?.addToLibraryCancelled(manga, position)
|
||||
}
|
||||
}
|
||||
|
||||
interface Listener {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue