Fix private space icons disappearing from search state.
This is because during onBind() that the icon alpha should be set to 0 ONLY in the case when animation + scroll is happening. The repro cuj is this: user has private space unlocked -> goes to toast and clicks qs tile -> onBind() happens and animationScrolling = true -> icon alpha is now 0. Instead we should check getAnimate() && scrolling() && isStateTransitioning() bug: 340836439 Test: manually - before: https://drive.google.com/file/d/1WLZRPsz-hm1d3fVRNGXs_Ps_AcdJhkPs/view?usp=sharing after: https://drive.google.com/file/d/1LidDKhx2ijOXmX_tcPAmng5P56WNPyyx/view?usp=sharing Flag: ACONFIG com.android.launcher3.Flags.private_space_animation NEXTFOOD Change-Id: I10b8ee5d8449acdb3d2c64e0e311f7dde89a464a
This commit is contained in:
1 parent
a2bbe1c5c8
commit
987efd6ea4
3 files changed
+41
-25
No files matched your search
@@ -40,11 +40,13 @@ import java.util.function.Predicate;
|
||||
* {@link PrivateProfileManager} which manages private profile state.
|
||||
*/
|
||||
public abstract class UserProfileManager {
|
||||
public static final int STATE_UNKNOWN = 0;
|
||||
public static final int STATE_ENABLED = 1;
|
||||
public static final int STATE_DISABLED = 2;
|
||||
public static final int STATE_TRANSITION = 3;
|
||||
|
||||
@IntDef(value = {
|
||||
STATE_UNKNOWN,
|
||||
STATE_ENABLED,
|
||||
STATE_DISABLED,
|
||||
STATE_TRANSITION
|
||||
|
||||
Reference in new issue
Block a user