Rename fun in Callback for clarity.

This commit is contained in:
Benoit Marty 2025-10-29 10:30:30 +01:00 committed by Benoit Marty
parent 353c00e032
commit 43972dba68
104 changed files with 658 additions and 664 deletions

View file

@ -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

View file

@ -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)