Rename fun in Callback for clarity.
This commit is contained in:
parent
45b5783b23
commit
09a18ad7ca
104 changed files with 658 additions and 664 deletions
|
|
@ -64,7 +64,7 @@ class BugReportFlowNode(
|
|||
this@BugReportFlowNode.onDone()
|
||||
}
|
||||
|
||||
override fun onViewLogs(basePath: String) {
|
||||
override fun navigateToViewLogs(basePath: String) {
|
||||
backstack.push(NavTarget.ViewLogs(rootPath = basePath))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,11 +32,11 @@ class BugReportNode(
|
|||
) : Node(buildContext, plugins = plugins) {
|
||||
interface Callback : Plugin {
|
||||
fun onDone()
|
||||
fun onViewLogs(basePath: String)
|
||||
fun navigateToViewLogs(basePath: String)
|
||||
}
|
||||
|
||||
private fun onViewLogs(basePath: String) {
|
||||
plugins<Callback>().forEach { it.onViewLogs(basePath) }
|
||||
plugins<Callback>().forEach { it.navigateToViewLogs(basePath) }
|
||||
}
|
||||
|
||||
private fun onDone() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue