Have responsive taskbar UI during swipe up gesture.

- Makes taskbar threshold an absolute Y threshold
  instead of a distance threshold.
- Moves handle, taskbar view, and taskbar background
  during the swipe up gesture

Next CL will address transforming the nav handle <-> taskbar
and ensuring that there's a clean handoff

Bug: 246631059
Test: swipe up on taskbar, release. see bounce
      swipe up on taskbar to go home, proper icon alignment
      swipe up on taskbar, pause for overview, see bounce
      -> further movement should not move taskbar
      test launcher3

Change-Id: I141236fd72428cda7edd0ff116de1d478d18c722
This commit is contained in:
Jon Miranda committed 2022-11-08 14:50:02 +00:00
1 parent cd587212a2
commit 29f7474056
12 files changed
+327 -20

No files matched your search

@@ -133,6 +133,13 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa
updateNavBarDarkIntensityMultiplier();
}
/**
* Sets the translation of the background during the swipe up gesture.
*/
public void setTranslationYForSwipe(float transY) {
mTaskbarDragLayer.setBackgroundTranslationYForSwipe(transY);
}
private void updateBackgroundOffset() {
mTaskbarDragLayer.setTaskbarBackgroundOffset(mBgOffset.value);