草庐IT

android - 我的 Android Listview 适配器中的 IndexOutOfBoundsException

我一直收到此IndexOutOfBoundsException,但似乎无法弄清楚是什么原因造成的。我的ListView有一个带有对象列表的适配器,并且根据时间戳删除对象。删除是在getView方法内部完成的。删除项目后,我调用notifyDataSetChanged()。github上提供了完整的源代码,这里是ListView适配器代码的链接:https://github.com/kenneho/run-for-the-bus/blob/master/app/src/main/java/net/kenneho/runnow/adapters/TravelsAdapter.java这是我