отмеченная строка с кодами звездочек завершается с ошибкой в случае в цикле When.
Описание ошибки: 'break' и 'continue' разрешены только внутри цикла.
Пожалуйста, помогите мне,спасибо
Как реализовать решение?
if (mOpenedItems.size == 0) break //*****************ERROR************
// Disallow our parent Views to intercept the touch events so long as there is
// at least one item view in the open or being closed state.
requestParentDisallowInterceptTouchEvent()
if (mFullyOpenedItem != null) {
mHasItemFullyOpenOnActionDown = true
if (mActiveItem === mFullyOpenedItem) {
resolveActiveItemMenuBounds()
// If the user's finger downs on the completely opened itemView's menu area,
// do not intercept the subsequent touch events (ACTION_MOVE, ACTION_UP, etc.)
// as we receive the ACTION_DOWN event.
// If the user's finger downs on the fully opened itemView but not on
// its menu, then we need to intercept them.
if (mActiveItemMenuBounds.contains(mDownX, mDownY)) {
break //**************************ERROR***************
} else if (mActiveItemBounds.contains(mDownX, mDownY)) {
return true
}
}
// If 1) the fully opened itemView is not the current one or 2) the user's
// finger downs outside of the area in which this view displays the itemViews,
// make the itemView's menu hidden and intercept the subsequent touch events.
releaseItemViewInternal(mFullyOpenedItem, itemScrollDuration)
}