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 (#1628)
  • Loading branch information
patrickunterwegs authored Nov 23, 2024
1 parent e3ffbaa commit a83d445
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 a83d445

Please sign in to comment.