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
This commit is contained in:
Andy Wickham
2023-09-13 17:27:59 -07:00
parent 997bc3e362
commit 1eb694a8cf

View File

@@ -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