From 5b42876fc90072c066b5c8ddba9eb2b0f9acb84d Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Mon, 22 Apr 2024 11:21:00 -0400 Subject: [PATCH] Remove exit transition for NavHost --- .../futo/inputmethod/latin/uix/settings/SettingsNavigator.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/latin/uix/settings/SettingsNavigator.kt b/java/src/org/futo/inputmethod/latin/uix/settings/SettingsNavigator.kt index 03ae27e19..f72cce45d 100644 --- a/java/src/org/futo/inputmethod/latin/uix/settings/SettingsNavigator.kt +++ b/java/src/org/futo/inputmethod/latin/uix/settings/SettingsNavigator.kt @@ -1,5 +1,6 @@ package org.futo.inputmethod.latin.uix.settings +import androidx.compose.animation.ExitTransition import androidx.compose.runtime.Composable import androidx.compose.ui.res.stringResource import androidx.navigation.NavHostController @@ -39,7 +40,9 @@ fun SettingsNavigator( ) { NavHost( navController = navController, - startDestination = "home" + startDestination = "home", + exitTransition = { ExitTransition.None }, + popExitTransition = { ExitTransition.None } ) { composable("home") { HomeScreen(navController) } composable("languages") { LanguagesScreen(navController) }