mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-23 10:31:13 +01:00
Fixed #397 - Add to manga dialog not removing from library on cancel
This commit is contained in:
parent
f5f4b8a119
commit
231c7f5bf3
@ -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…
x
Reference in New Issue
Block a user