Add a way to stash/unstash transient taskbar.

- Adds threshold to show taskbar during swipe
- Introduces FLAG_STASHED_IN_APP_AUTO flag
- Adds logic for taskbar to auto hide based on time
  and touch

Bug: 252905206
Test: manual
Change-Id: I070cd619487fdd4498a988ae5aadce6dd14313f7
This commit is contained in:
Jon Miranda committed 2022-11-01 16:03:01 -07:00
1 parent 59228a6511
commit 6163e2d39f
10 files changed
+359 -44

No files matched your search

@@ -115,6 +115,14 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
return true;
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
if (mControllerCallbacks != null && ev.getAction() == MotionEvent.ACTION_OUTSIDE) {
mControllerCallbacks.onActionOutsideEvent();
}
return super.onTouchEvent(ev);
}
@Override
public void onViewRemoved(View child) {
super.onViewRemoved(child);