Fixed rapidly deleting categories not deleting
This commit is contained in:
parent
f1a62857be
commit
fb5b14dd8a
@ -136,6 +136,7 @@ class CategoryController(bundle: Bundle? = null) : BaseController(bundle),
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun deleteCategory(position: Int) {
|
private fun deleteCategory(position: Int) {
|
||||||
|
confirmDelete()
|
||||||
adapter?.removeItem(position)
|
adapter?.removeItem(position)
|
||||||
snack =
|
snack =
|
||||||
view?.snack(R.string.category_deleted, Snackbar.LENGTH_INDEFINITE) {
|
view?.snack(R.string.category_deleted, Snackbar.LENGTH_INDEFINITE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user