diff options
author | Tony Wickham <twickham@google.com> | 2021-11-16 17:38:36 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2021-11-23 16:37:06 -0800 |
commit | 821e37b44768198b4bddb302a0c87de3ff31f1ae (patch) | |
tree | 60dad3146fc4fb372fed6a18661aebad25fdb5eb /quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java | |
parent | db5f5f05e752f27523b8f44cca0c561e007b489a (diff) |
Stash taskbar when IME is present, including during gestures
- SysUI removes SYSUI_STATE_IME_SHOWING when starting a gesture from an app, but because unstashing has implications on the gesture transition (e.g. clips the bottom of the app), we defer handling the ime hiding until the gesture settles. Repurposed the flow that swaps the taskbar background during the gesture to support this case as well.
- Delay the unstash when IME is closing, to align with the end of the IME exit transition
- Remove TaskbarViewController.ALPHA_INDEX_IME now that we stash when IME is opening, since stashing already hides the taskbar icons
- Also support passing a starting progress to the stashed handle reveal animation, to allow it to be reversed when cancelled. For example, when returning to an app that has IME showing, we first start unstashing because we're in an app, but then we get the signal that IME is attached so we stash again almost immediately (within a frame or two).
Test: In both 3 button and fully gestural, open a keyboard in an app, ensure taskbar gets out of the way and then reappears at the end when the keyboard is dismissed
Bug: 202511986
Change-Id: I93c298a98ba369ea6310466ff3f802231c582687
Diffstat (limited to 'quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java index c47bde9dcd..445a23bf3f 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -45,12 +45,11 @@ public class TaskbarViewController { private static final Runnable NO_OP = () -> { }; public static final int ALPHA_INDEX_HOME = 0; - public static final int ALPHA_INDEX_IME = 1; - public static final int ALPHA_INDEX_KEYGUARD = 2; - public static final int ALPHA_INDEX_STASH = 3; - public static final int ALPHA_INDEX_RECENTS_DISABLED = 4; - public static final int ALPHA_INDEX_NOTIFICATION_EXPANDED = 5; - private static final int NUM_ALPHA_CHANNELS = 6; + public static final int ALPHA_INDEX_KEYGUARD = 1; + public static final int ALPHA_INDEX_STASH = 2; + public static final int ALPHA_INDEX_RECENTS_DISABLED = 3; + public static final int ALPHA_INDEX_NOTIFICATION_EXPANDED = 4; + private static final int NUM_ALPHA_CHANNELS = 5; private final TaskbarActivityContext mActivity; private final TaskbarView mTaskbarView; |