From 7eab37e9d1a97215b11bef28efff50fe3f971d46 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Mon, 19 Sep 2022 16:06:02 +0200 Subject: [PATCH] Small renaming of navigator method --- .../settings/devices/v2/rename/RenameSessionFragment.kt | 2 +- .../settings/devices/v2/rename/RenameSessionViewNavigator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() } }