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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-09-13 18:05:28 +00:00
commit 14df808f4d
2 files changed
+4 -3

No files matched your search

@@ -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 {