Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e95b07c authored by Anvesh Renikindi's avatar Anvesh Renikindi Committed by Automerger Merge Worker
Browse files

Merge "Revert "Revert "Updated AnimatedContentScope to AnimatedContentT...""...

Merge "Revert "Revert "Updated AnimatedContentScope to AnimatedContentT..."" into udc-dev-plus-aosp am: 631fe7a4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23816586



Change-Id: I9a04c6e6f0c4922e978edba4e984685a153407eb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 475c18ff 631fe7a4
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.annotation.VisibleForTesting
import androidx.compose.animation.AnimatedContentScope
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
@@ -146,22 +146,26 @@ private fun NavControllerWrapperImpl.NavContent(
                arguments = spp.parameter,
                enterTransition = {
                    slideIntoContainer(
                        AnimatedContentScope.SlideDirection.Start, animationSpec = slideEffect
                        AnimatedContentTransitionScope.SlideDirection.Start,
                        animationSpec = slideEffect
                    ) + fadeIn(animationSpec = fadeEffect)
                },
                exitTransition = {
                    slideOutOfContainer(
                        AnimatedContentScope.SlideDirection.Start, animationSpec = slideEffect
                        AnimatedContentTransitionScope.SlideDirection.Start,
                        animationSpec = slideEffect
                    ) + fadeOut(animationSpec = fadeEffect)
                },
                popEnterTransition = {
                    slideIntoContainer(
                        AnimatedContentScope.SlideDirection.End, animationSpec = slideEffect
                        AnimatedContentTransitionScope.SlideDirection.End,
                        animationSpec = slideEffect
                    ) + fadeIn(animationSpec = fadeEffect)
                },
                popExitTransition = {
                    slideOutOfContainer(
                        AnimatedContentScope.SlideDirection.End, animationSpec = slideEffect
                        AnimatedContentTransitionScope.SlideDirection.End,
                        animationSpec = slideEffect
                    ) + fadeOut(animationSpec = fadeEffect)
                },
            ) { navBackStackEntry ->