Skip to content
Snippets Groups Projects
Commit 51d83c09 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Fix crash when action mode is null

parent f34eba19
No related branches found
No related tags found
1 merge request!98Fix audio item selection with action mode
Pipeline #6786 passed with stage
in 3 minutes and 35 seconds
......@@ -279,9 +279,8 @@ abstract class MediaBrowserFragment<T : SortableModel> : Fragment(), ActionMode.
}
protected fun stopActionMode() {
if (actionMode != null) {
actionMode!!.finish()
onDestroyActionMode(actionMode)
actionMode?.let {
it.finish()
setFabPlayVisibility(true)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment