Skip to content

Commit

Permalink
ui: remove ui change transition animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Feb 2, 2024
1 parent f29583e commit b0ff86e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.ActivityResultLauncher
import androidx.annotation.StringRes
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
Expand Down Expand Up @@ -114,7 +116,9 @@ class SettingActivity : ComponentActivity(), KoinComponent {
NavHost(
navController = navController,
startDestination = Main.name,
modifier = Modifier.padding(innerPadding)
modifier = Modifier.padding(innerPadding),
enterTransition = { EnterTransition.None },
exitTransition = { ExitTransition.None },
) {
val action = this@SettingActivity::handleLink
composable(Main.name) {
Expand Down

0 comments on commit b0ff86e

Please sign in to comment.