mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
重複事項を削除
This commit is contained in:
parent
ba87fb283e
commit
2402936a19
|
@ -16,7 +16,6 @@ public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.Docume
|
|||
|
||||
private List<DocumentMeta> documentMetas;
|
||||
|
||||
|
||||
public DocumentAdapter(List<DocumentMeta> documentMetas) {
|
||||
// nullの場合に例外を発生させる
|
||||
if (documentMetas == null) {
|
||||
|
@ -34,9 +33,6 @@ public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.Docume
|
|||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull DocumentViewHolder holder, int position) {
|
||||
// DocumentMeta から適切な情報を取得してセット
|
||||
holder.title.setText(documentMetas.get(position).getTitle());
|
||||
|
||||
DocumentMeta documentMeta = documentMetas.get(position);
|
||||
if (documentMeta != null) {
|
||||
holder.title.setText(documentMeta.getTitle());
|
||||
|
|
Loading…
Reference in New Issue
Block a user