Add FallbackTaskbarUIController

- Refactor TaskbarManager to accept StatefulActivity instead of BaseQuickstepLauncher
- Update the new StatefulActivity in onOverviewTargetChange()
- Cleanup LauncherTaskbarUIController a bit to avoid initializing TaskbarActivityContext, TaskbarDragLayer, and TaskbarViewController in the constructor, and instead get these from mControllers after init()

Test: No change in behavior
Bug: 188790554
Change-Id: Ic4d69d73deb6dada416876eb265db57803c3adfd
This commit is contained in:
Tony Wickham
2021-10-18 16:02:21 -07:00
parent d238074c39
commit 8791e7de11
7 changed files with 116 additions and 35 deletions

View File

@@ -253,6 +253,14 @@ public class TaskbarViewController {
mTaskbarNavButtonTranslationY.updateValue(-deviceProfile.getTaskbarOffsetY());
}
/**
* Returns whether the given MotionEvent, *in screen coorindates*, is within any Taskbar item's
* touch bounds.
*/
public boolean isEventOverAnyItem(MotionEvent ev) {
return mTaskbarView.isEventOverAnyItem(ev);
}
/**
* Callbacks for {@link TaskbarView} to interact with its controller.
*/