一応修正

This commit is contained in:
r-ca 2024-01-29 05:15:56 +09:00
parent d38a60508d
commit 8731855849
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -106,8 +106,16 @@ public class ViewerListFragment extends Fragment {
RecyclerView recyclerView = view.findViewById(R.id.body_recycler_view);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(fileName -> {
Toast.makeText(getContext(), fileName, Toast.LENGTH_SHORT).show();
ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(new ItemClickListener() {
@Override
public void onItemClick(String fileName) {
}
@Override
public void onItemLongClick(String fileName, int position) {
}
});
recyclerView.setAdapter(viewerBodyAdapter);