From c1151b778ceb7d61d50cfe90d08f947c7f28ac7f Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 21 Jan 2024 17:56:52 +0900 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=83=8F=E3=81=AE=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=82=A2=E3=83=8B=E3=83=A1=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/component/viewer/ComponentViewerTopFragment.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()); }); });