Merge "Fix taskbar education not touchable if taskbar is stashed" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-09-13 18:05:28 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 3 deletions
@@ -128,7 +128,7 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
@Override
protected boolean isTaskbarTouchable() {
return !isAnimatingToLauncher() && !mControllers.taskbarStashController.isStashed();
return !isAnimatingToLauncher();
}
private boolean isAnimatingToLauncher() {
@@ -135,8 +135,9 @@ public class TaskbarDragLayerController {
} else if (!mControllers.uiController.isTaskbarTouchable()) {
// Let touches pass through us.
insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION);
} else if (mControllers.taskbarViewController.areIconsVisible()) {
// Buttons are visible, take over the full taskbar area
} else if (mControllers.taskbarViewController.areIconsVisible()
|| AbstractFloatingView.getOpenView(mActivity, TYPE_ALL) != null) {
// Taskbar has some touchable elements, take over the full taskbar area
insetsInfo.setTouchableInsets(mActivity.isTaskbarWindowFullscreen()
? TOUCHABLE_INSETS_FRAME : TOUCHABLE_INSETS_CONTENT);
} else {