Crash fixes

This commit is contained in:
len
2016-04-04 23:25:50 +02:00
parent 5029e4a28c
commit d8ac35d259
3 changed files with 7 additions and 7 deletions
@@ -359,11 +359,12 @@ class ChaptersFragment : BaseRxFragment<ChaptersPresenter>(), ActionMode.Callbac
}
override fun onListItemClick(position: Int): Boolean {
val item = adapter.getItem(position) ?: return false
if (actionMode != null && adapter.mode == FlexibleAdapter.MODE_MULTI) {
toggleSelection(position)
return true
} else {
openChapter(adapter.getItem(position))
openChapter(item)
return false
}
}