From 3d9249784bf1d302de1d00c6eda69667dcc7a0ff Mon Sep 17 00:00:00 2001 From: Isaac Udy Date: Tue, 30 Apr 2024 20:57:12 +1200 Subject: [PATCH] Fix lint error --- .../fragment/container/FragmentNavigationContainer.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/enro-core/src/main/java/dev/enro/destination/fragment/container/FragmentNavigationContainer.kt b/enro-core/src/main/java/dev/enro/destination/fragment/container/FragmentNavigationContainer.kt index 6038edb4..da4648eb 100644 --- a/enro-core/src/main/java/dev/enro/destination/fragment/container/FragmentNavigationContainer.kt +++ b/enro-core/src/main/java/dev/enro/destination/fragment/container/FragmentNavigationContainer.kt @@ -225,9 +225,10 @@ public class FragmentNavigationContainer internal constructor( fragmentManager.findFragmentByTag(it.instructionId) } ?.let { primaryFragment -> - if (fragmentManager.primaryNavigationFragment != primaryFragment) - fragmentManager.commitNow { - setPrimaryNavigationFragment(primaryFragment) + if (fragmentManager.primaryNavigationFragment != primaryFragment) { + fragmentManager.commitNow { + setPrimaryNavigationFragment(primaryFragment) + } } } return true