mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
fading the server selection when coming from the use case page
This commit is contained in:
parent
0ba6f55ad4
commit
878371cd9a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user