Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent crash adapter has no data #79

Open
JIMANOPE opened this issue Jul 18, 2017 · 0 comments
Open

Prevent crash adapter has no data #79

JIMANOPE opened this issue Jul 18, 2017 · 0 comments

Comments

@JIMANOPE
Copy link

Good afternoon from Colombia,

It would be nice to add the following lines of code, to prevent the application from closing when the adapter has no data.

@OverRide
public boolean onTouchEvent(MotionEvent event) {
if (getAdapter() == null)
return false;

    if (getAdapter().isEmpty())
        return false;

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant