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

Rearranging folder crash #200

Closed
geekygecko opened this issue Aug 2, 2022 · 0 comments · Fixed by #201
Closed

Rearranging folder crash #200

geekygecko opened this issue Aug 2, 2022 · 0 comments · Fixed by #201
Assignees
Labels
[Type] Bug Not functioning as intended.

Comments

@geekygecko
Copy link
Member

There is a crash in Firebase when a user is rearranging folders.

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=89; index=-1
       at java.util.ArrayList.get(ArrayList.java:439)
       at java.util.Collections.swap(Collections.java:544)
       at au.com.shiftyjelly.pocketcasts.podcasts.viewmodel.PodcastsViewModel.moveFolderItem(PodcastsViewModel.kt:193)
       at au.com.shiftyjelly.pocketcasts.podcasts.view.podcasts.PodcastsFragment.onPodcastMove(PodcastsFragment.kt:312)
       at au.com.shiftyjelly.pocketcasts.views.adapter.PodcastTouchCallback.onMove(PodcastTouchCallback.kt:27)
       at androidx.recyclerview.widget.ItemTouchHelper.moveIfNecessary(ItemTouchHelper.java:885)
       at androidx.recyclerview.widget.ItemTouchHelper$2.onTouchEvent(ItemTouchHelper.java:389)
       at androidx.recyclerview.widget.RecyclerView.dispatchToOnItemTouchListeners(RecyclerView.java:3259)
       at androidx.recyclerview.widget.RecyclerView.onTouchEvent(RecyclerView.java:3421)
@geekygecko geekygecko added the [Type] Bug Not functioning as intended. label Aug 2, 2022
@geekygecko geekygecko self-assigned this Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Not functioning as intended.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant