Merge "Fix taskbar education not touchable if taskbar is stashed" into sc-v2-dev am: 14df808f4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15794823 Change-Id: I0358afa81befc759f66126359c637c908ddbceb1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user