Right now, I just want to add an element to an recyclerView adapter, but when I add the second item, the logcat on Android Studio shows the following exception:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
The code adds the items to Firebase with no problems, but it appears that the recyclerView cannot reflect what is in the Firebase Database.
My guess is that there's an off-by-one error caused by the +1 in line 43 of the posted code. However I don't see any connection between the things mentioned in that line of code and the mItems list, so I could be guessing in the dark.