Skip to content

Commit

Permalink
Allow item categories to appear as recent items
Browse files Browse the repository at this point in the history
  • Loading branch information
smichel17 committed Dec 23, 2021
1 parent 86c28a9 commit 547c400
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ abstract class AGroupedImageListQuestAnswerFragment<I,T> : AbstractQuestFormAnsw
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
imageSelector = GroupedImageSelectAdapter(GridLayoutManager(activity, itemsPerRow))
itemsByString = allItems.mapNotNull { it.items }.flatten().associateBy { it.value.toString() }
val childItems = allItems.mapNotNull { it.items }.flatten()
itemsByString = (allItems + childItems).associateBy { it.value.toString() }
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
Expand Down

0 comments on commit 547c400

Please sign in to comment.