Fix source category deletion crash
This commit is contained in:
parent
7a08fa3398
commit
df6bbbd4c6
@ -30,8 +30,8 @@ import reactivecircus.flowbinding.android.view.clicks
|
|||||||
*/
|
*/
|
||||||
class SourceCategoryController :
|
class SourceCategoryController :
|
||||||
NucleusController<CategoriesControllerBinding, SourceCategoryPresenter>(),
|
NucleusController<CategoriesControllerBinding, SourceCategoryPresenter>(),
|
||||||
ActionMode.Callback,
|
|
||||||
FabController,
|
FabController,
|
||||||
|
ActionMode.Callback,
|
||||||
FlexibleAdapter.OnItemClickListener,
|
FlexibleAdapter.OnItemClickListener,
|
||||||
FlexibleAdapter.OnItemLongClickListener,
|
FlexibleAdapter.OnItemLongClickListener,
|
||||||
SourceCategoryCreateDialog.Listener,
|
SourceCategoryCreateDialog.Listener,
|
||||||
@ -195,7 +195,7 @@ class SourceCategoryController :
|
|||||||
R.id.action_delete -> {
|
R.id.action_delete -> {
|
||||||
undoHelper = UndoHelper(adapter, this)
|
undoHelper = UndoHelper(adapter, this)
|
||||||
undoHelper?.start(
|
undoHelper?.start(
|
||||||
adapter.selectedPositions, root_coordinator,
|
adapter.selectedPositions, activity!!.root_coordinator,
|
||||||
R.string.snack_categories_deleted, R.string.action_undo, 3000
|
R.string.snack_categories_deleted, R.string.action_undo, 3000
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user