diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ComponentViewerTopFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ComponentViewerTopFragment.java index ba81a71d..509b2a34 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ComponentViewerTopFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ComponentViewerTopFragment.java @@ -72,11 +72,8 @@ public class ComponentViewerTopFragment extends Fragment { document.getDocument(documentId).thenAccept(documentDetail -> { viewerBodyAdapter.setPages(documentDetail.getPages()); -// getActivity().runOnUiThread(() -> { -// viewerBodyAdapter.notifyItemRangeChanged(0, pages.size()); -// }); getActivity().runOnUiThread(() -> { - viewerBodyAdapter.notifyDataSetChanged(); + viewerBodyAdapter.notifyItemRangeChanged(0, documentDetail.getPages().size()); }); });