Rename fun in Callback for clarity.
This commit is contained in:
parent
353c00e032
commit
43972dba68
104 changed files with 658 additions and 664 deletions
|
|
@ -35,7 +35,7 @@ class ViewFolderNode(
|
|||
|
||||
interface Callback : Plugin {
|
||||
fun onBackClick()
|
||||
fun onNavigateTo(item: Item)
|
||||
fun navigateToItem(item: Item)
|
||||
}
|
||||
|
||||
private val inputs: Inputs = inputs()
|
||||
|
|
@ -50,7 +50,7 @@ class ViewFolderNode(
|
|||
}
|
||||
|
||||
private fun onNavigateTo(item: Item) {
|
||||
plugins<Callback>().forEach { it.onNavigateTo(item) }
|
||||
plugins<Callback>().forEach { it.navigateToItem(item) }
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class ViewFolderFlowNode(
|
|||
onDone()
|
||||
}
|
||||
|
||||
override fun onNavigateTo(item: Item) {
|
||||
override fun navigateToItem(item: Item) {
|
||||
when (item) {
|
||||
Item.Parent -> {
|
||||
// Should not happen when in Root since parent is not accessible from root (canGoUp set to false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue