From 27c59dbb6504fbaa99762a6caa8b6eadd5a4baa9 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 22 Aug 2020 05:52:57 -0700 Subject: [PATCH] Disable animations in toolbar Fix #2907 --- app/src/main/java/com/topjohnwu/magisk/ktx/XAndroid.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ktx/XAndroid.kt b/app/src/main/java/com/topjohnwu/magisk/ktx/XAndroid.kt index 901820a2a..dfd0a89f4 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ktx/XAndroid.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ktx/XAndroid.kt @@ -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