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
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user