Fix Taskbar unlock transition
- There are multiple signals that come just after FLAG_DEVICE_LOCKED is removed, and those should still be considered part of the unlock transition. We already did this for TaskbarStashController so I copied it to TaskbarLauncherStateController. - Also animate when changing SYSUI_STATE_OVERVIEW_DISABLED, since this happens when the device is locked/unlocked and changes the visibility of TaskbarView icons. Test: manually unlock over both home screen and in-app, verify clean transition without jump (e.g. Hotseat is immediately visible as part of Workspace, and Taskbar fades in during unlock to an app) Flag: EXEMPT bug fix Fixes: 364586744 Change-Id: If0497fcc17bb0ec44294c4ea1163104b4d8be459
This commit is contained in:
1 parent
6f231f694d
commit
7519b7c2e6
3 files changed
+22
-6
No files matched your search
@@ -84,7 +84,6 @@ import com.android.wm.shell.shared.bubbles.BubbleBarLocation;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
@@ -330,7 +329,8 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
*/
|
||||
public void setRecentsButtonDisabled(boolean isDisabled) {
|
||||
// TODO: check TaskbarStashController#supportsStashing(), to stash instead of setting alpha.
|
||||
mTaskbarIconAlpha.get(ALPHA_INDEX_RECENTS_DISABLED).setValue(isDisabled ? 0 : 1);
|
||||
mTaskbarIconAlpha.get(ALPHA_INDEX_RECENTS_DISABLED).animateToValue(isDisabled ? 0 : 1)
|
||||
.start();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user