画像の表示時にアニメーションするように

This commit is contained in:
r-ca 2024-01-21 17:56:52 +09:00
parent 10e3093c53
commit c1151b778c
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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());
});
});