mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Rename fun in Callback for clarity.
This commit is contained in:
committed by
Benoit Marty
parent
353c00e032
commit
43972dba68
+1
-1
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user