Skip to content

Commit 041dba2

Browse files
committed
feat #9: return the dataset size
1 parent 3c4660e commit 041dba2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Affirmations/.idea/workspace.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Affirmations/app/src/main/java/com/example/affirmations/adapter/ItemAdapter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class ItemAdapter(private val context: Context, private val dataset: List<Affirm
2727
TODO("Not yet implemented")
2828
}
2929

30+
// return the size of the dataset
3031
override fun getItemCount(): Int {
31-
TODO("Not yet implemented")
32+
return dataset.size
3233
}
3334
}

0 commit comments

Comments
 (0)