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

Search event refactor #1183

Closed
wants to merge 11 commits into from
Closed

Conversation

imjarp
Copy link

@imjarp imjarp commented Jul 12, 2017

This PR fixes #251 caused in a Search event

@mario
Copy link
Contributor

mario commented Jul 14, 2017

@imjarp thanks for the PR, and someone will definitely look into it.

However I highly doubt it fixes the bug you mention because at the time it was reported EventBus wasn't even used :)

@imjarp
Copy link
Author

imjarp commented Jul 14, 2017

@mario Sorry, maybe the comment is wrong :( , this do not completely fix the bug , but with the search event (favorites, photos, shared) is more clearly how to reproduce it , i attach the evidence with the latest version of NextCloud master. Hope is helpful :)

BTW hadn`t time to check it but i think the problem comes with WrapperListAdapter ListView.addFooterView

if i can help with anything just tell me :)

The error in the logcat
07-14 11:09:43.683 6597-6597/com.nextcloud.client E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.nextcloud.client, PID: 6597
java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164)
at android.widget.AbsListView.onTouchDown(AbsListView.java:3931)

With fav search

fav_search

With shared search

share_search

Logcat

share_search_logcat.txt

@mario
Copy link
Contributor

mario commented Aug 8, 2017

@AndyScherzinger @tobiasKaminsky we should test and merge this for 1.5 if it's all fine.

@AndyScherzinger
Copy link
Member

@tobiasKaminsky @imjarp can you please have a look at this and also update it to latest master? If it works I'd also say merge for next release.

@imjarp
Copy link
Author

imjarp commented Aug 9, 2017

Sure i will check it tomorrow

@tobiasKaminsky
Copy link
Member

Closing due to inactivity, but keeping branch.

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

Successfully merging this pull request may close these issues.

IndexOutOfBoundsException via HeaderViewListAdapter
4 participants