fading the server selection when coming from the use case page

This commit is contained in:
Adam Brown 2022-01-10 13:07:12 +00:00
parent 0ba6f55ad4
commit 878371cd9a

View File

@ -152,13 +152,16 @@ class FtueAuthVariant(
activity.addFragmentToBackstack(views.loginFragmentContainer, activity.addFragmentToBackstack(views.loginFragmentContainer,
FtueAuthServerSelectionFragment::class.java, FtueAuthServerSelectionFragment::class.java,
option = { ft -> option = { ft ->
activity.findViewById<View?>(R.id.loginSplashLogo)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") } if (vectorFeatures.isOnboardingUseCaseEnabled()) {
// Disable transition of text ft.setCustomAnimations(enterAnim, exitAnim, popEnterAnim, popExitAnim)
// findViewById<View?>(R.id.loginSplashTitle)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") } } else {
// No transition here now actually activity.findViewById<View?>(R.id.loginSplashLogo)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") }
// findViewById<View?>(R.id.loginSplashSubmit)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") } // TODO Disabled because it provokes a flickering
// TODO Disabled because it provokes a flickering // Disable transition of text
// ft.setCustomAnimations(enterAnim, exitAnim, popEnterAnim, popExitAnim) // findViewById<View?>(R.id.loginSplashTitle)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") }
// No transition here now actually
// findViewById<View?>(R.id.loginSplashSubmit)?.let { ft.addSharedElement(it, ViewCompat.getTransitionName(it) ?: "") }
}
}) })
is OnboardingViewEvents.OnServerSelectionDone -> onServerSelectionDone(viewEvents) is OnboardingViewEvents.OnServerSelectionDone -> onServerSelectionDone(viewEvents)
is OnboardingViewEvents.OnSignModeSelected -> onSignModeSelected(viewEvents) is OnboardingViewEvents.OnSignModeSelected -> onSignModeSelected(viewEvents)