Updates view crashing when app update status is removed.
Seeing a few of these via ACRA:
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.remove(ArrayList.java:403)
at org.fdroid.fdroid.views.updates.UpdatesAdapter.onAppStatusRemoved(UpdatesAdapter.java:345)
at org.fdroid.fdroid.views.updates.UpdatesAdapter.access$200(UpdatesAdapter.java:64)
at org.fdroid.fdroid.views.updates.UpdatesAdapter$2.onReceive(UpdatesAdapter.java:366)
at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:189)
at android.app.ActivityThread.main(ActivityThread.java:5532)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
This is due to the UpdateAdapter
falling over when trying to correctly notify its RecyclerView
of any changes to its state.