Disable animations in toolbar

Fix #2907
This commit is contained in:
topjohnwu 2020-08-22 05:52:57 -07:00
parent fb04e32480
commit 27c59dbb65

View File

@ -322,7 +322,9 @@ fun View.addOnGlobalLayoutListener(oneShot: Boolean = false, callback: () -> Uni
fun ViewGroup.startAnimations() {
val transition = AutoTransition()
.setInterpolator(FastOutSlowInInterpolator()).setDuration(400)
.setInterpolator(FastOutSlowInInterpolator())
.setDuration(400)
.excludeTarget(R.id.main_toolbar, true)
TransitionManager.beginDelayedTransition(
this,
transition