diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionFragment.kt index 7bb4eaaed7..49b2ee2cdf 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionFragment.kt @@ -62,7 +62,7 @@ class RenameSessionFragment : viewModel.observeViewEvents { when (it) { is RenameSessionViewEvent.SessionRenamed -> { - viewNavigator.navigateBack(requireActivity()) + viewNavigator.goBack(requireActivity()) } } } diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionViewNavigator.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionViewNavigator.kt index 229d0bc70c..d26733635b 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionViewNavigator.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/rename/RenameSessionViewNavigator.kt @@ -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() } }