Skip to content

Commit

Permalink
[Feature] New subtasks and notes should inherit classification from p…
Browse files Browse the repository at this point in the history
…arent #1605
  • Loading branch information
patrickunterwegs committed Nov 12, 2024
1 parent 406d068 commit 77c99a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/at/techbee/jtx/ui/detail/DetailsScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ fun DetailsScreen(
module = Module.TODO,
onCreate = { itemList ->
iCalObject.value?.let {
itemList.forEach { subentry ->
subentry.classification = it.classification
}
detailViewModel.addSubEntries(itemList, it.uid, it.collectionId)
scrollToSection.value = DetailsScreenSection.SUBTASKS
}
Expand All @@ -279,6 +282,9 @@ fun DetailsScreen(
module = Module.NOTE,
onCreate = { itemList ->
iCalObject.value?.let {
itemList.forEach { subentry ->
subentry.classification = it.classification
}
detailViewModel.addSubEntries(itemList, it.uid, it.collectionId)
scrollToSection.value = DetailsScreenSection.SUBNOTES
}
Expand Down

0 comments on commit 77c99a6

Please sign in to comment.