-
Notifications
You must be signed in to change notification settings - Fork 266
您好,最新的1.2.0版本有个Bug #70
Copy link
Copy link
Open
Description
private int getWillPickIndexByGlobalY(int globalY) { if (mItemHeight == 0) return 0; int willPickIndex = globalY / mItemHeight + mShownCount / 2; int index = getIndexByRawIndex(willPickIndex, getOneRecycleSize(), mWrapSelectorWheel && mWrapSelectorWheelCheck); if (0 <= index && index < getOneRecycleSize()) { return index + mMinShowIndex; } else { throw new IllegalArgumentException("getWillPickIndexByGlobalY illegal index : " + index + " getOneRecycleSize() : " + getOneRecycleSize() + " mWrapSelectorWheel : " + mWrapSelectorWheel); } }
以上这个方法会抛出异常,NumberPickerView.getWillPickIndexByGlobalY方法,麻烦处理一下
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels