Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

列表长度为0时,会出现adapter.getCount()为null(when the list's size equal 0, the project throw a exception that means adapter.getCount() is null) #162

Description

@zhushenwudi

modify the NiceSpinner.java:
@OverRide
public boolean onTouchEvent(MotionEvent event) {
if (isEnabled() && event.getAction() == MotionEvent.ACTION_UP && adapter != null) {
if (!popupWindow.isShowing() && adapter.getCount() > 0) {
showDropDown();
} else {
dismissDropDown();
}
}
return super.onTouchEvent(event);
}

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