Small renaming of navigator method
This commit is contained in:
parent
c3d359e58f
commit
7eab37e9d1
@ -62,7 +62,7 @@ class RenameSessionFragment :
|
|||||||
viewModel.observeViewEvents {
|
viewModel.observeViewEvents {
|
||||||
when (it) {
|
when (it) {
|
||||||
is RenameSessionViewEvent.SessionRenamed -> {
|
is RenameSessionViewEvent.SessionRenamed -> {
|
||||||
viewNavigator.navigateBack(requireActivity())
|
viewNavigator.goBack(requireActivity())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ import javax.inject.Inject
|
|||||||
// TODO add unit tests
|
// TODO add unit tests
|
||||||
class RenameSessionViewNavigator @Inject constructor() {
|
class RenameSessionViewNavigator @Inject constructor() {
|
||||||
|
|
||||||
fun navigateBack(activity: FragmentActivity) {
|
fun goBack(activity: FragmentActivity) {
|
||||||
activity.finish()
|
activity.finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user