Rename fun in Callback for clarity.
This commit is contained in:
parent
353c00e032
commit
43972dba68
104 changed files with 658 additions and 664 deletions
|
|
@ -64,7 +64,7 @@ class PollHistoryFlowNode(
|
|||
}
|
||||
NavTarget.Root -> {
|
||||
val callback = object : PollHistoryNode.Callback {
|
||||
override fun onEditPoll(pollStartEventId: EventId) {
|
||||
override fun navigateToEditPoll(pollStartEventId: EventId) {
|
||||
backstack.push(NavTarget.EditPoll(pollStartEventId))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ class PollHistoryNode(
|
|||
plugins = plugins,
|
||||
) {
|
||||
interface Callback : Plugin {
|
||||
fun onEditPoll(pollStartEventId: EventId)
|
||||
fun navigateToEditPoll(pollStartEventId: EventId)
|
||||
}
|
||||
|
||||
private fun onEditPoll(pollStartEventId: EventId) {
|
||||
plugins<Callback>().forEach { it.onEditPoll(pollStartEventId) }
|
||||
plugins<Callback>().forEach { it.navigateToEditPoll(pollStartEventId) }
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue