Use notifyDataSetChanged() instead of notifyItemRemoved() to avoid crash

This commit is contained in:
seven332 committed 2018-12-21 16:22:01 +08:00
1 parent a5767e0fe6
commit 92b5f2d766
1 file changed
+1 -1
@@ -429,7 +429,7 @@ public class HistoryScene extends ToolbarScene
HistoryInfo info = mLazyList.get(mPosition);
EhDB.deleteHistoryInfo(info);
updateLazyList();
mAdapter.notifyItemRemoved(mPosition);
mAdapter.notifyDataSetChanged();
updateView(true);
}
}