Merge "Have responsive taskbar UI during swipe up gesture." into tm-qpr-dev

This commit is contained in:
Jon Miranda
2022-11-08 17:53:05 +00:00
committed by Android (Google) Code Review
12 changed files with 327 additions and 20 deletions

View File

@@ -175,6 +175,14 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
invalidate();
}
/*
* Sets the translation of the background during the swipe up gesture.
*/
protected void setBackgroundTranslationYForSwipe(float translationY) {
mBackgroundRenderer.setTranslationYForSwipe(translationY);
invalidate();
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
TestLogging.recordMotionEvent(TestProtocol.SEQUENCE_MAIN, "Touch event", ev);