From 1eb694a8cf4c9053de6e5c7d45042dd31e2fdd15 Mon Sep 17 00:00:00 2001 From: Andy Wickham Date: Wed, 13 Sep 2023 17:27:59 -0700 Subject: [PATCH] Don't animate layout changes for WorkModeSwitch. E.g. translation when rotating or unfolding the device. The button is laid out as needed, so this was most visible when entering all apps after folding/unfolding the device, but could also be seen when rotating the device while in all apps. Fix: 298073915 Test: Manual (folding/rotating device) Flag: N/A Change-Id: I573d7113a7870af0a251b3ca3916e3811f370ef9 --- src/com/android/launcher3/allapps/WorkModeSwitch.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/com/android/launcher3/allapps/WorkModeSwitch.java b/src/com/android/launcher3/allapps/WorkModeSwitch.java index 28a331276f..144381c9c1 100644 --- a/src/com/android/launcher3/allapps/WorkModeSwitch.java +++ b/src/com/android/launcher3/allapps/WorkModeSwitch.java @@ -17,7 +17,6 @@ package com.android.launcher3.allapps; import static com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip.getTabWidth; -import android.animation.LayoutTransition; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; @@ -92,8 +91,6 @@ public class WorkModeSwitch extends LinearLayout implements Insettable, setInsets(mActivityContext.getDeviceProfile().getInsets()); updateStringFromCache(); - - getLayoutTransition().enableTransitionType(LayoutTransition.CHANGING); } @Override