Use notifyDataSetChanged() instead of notifyItemRemoved() to avoid crash
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user