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