Skip to content

您好,最新的1.2.0版本有个Bug #70

@ansen666

Description

@ansen666

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方法,麻烦处理一下

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions