Merge "Fix back button not touchable in SUW" into sc-v2-dev am: aa28886d7b

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15717096

Change-Id: If3cda5eccbbde96cebccddaebeb9717a8b54a06a
This commit is contained in:
TreeHugger Robot
2021-08-30 18:06:23 +00:00
committed by Automerger Merge Worker
@@ -123,11 +123,9 @@ public class TaskbarDragLayerController {
*/
public void updateInsetsTouchability(InsetsInfo insetsInfo) {
insetsInfo.touchableRegion.setEmpty();
if (mActivity.isThreeButtonNav()) {
// Always have nav buttons be touchable
mControllers.navbarButtonsViewController.addVisibleButtonsRegion(
mTaskbarDragLayer, insetsInfo.touchableRegion);
}
// Always have nav buttons be touchable
mControllers.navbarButtonsViewController.addVisibleButtonsRegion(
mTaskbarDragLayer, insetsInfo.touchableRegion);
if (mTaskbarDragLayer.getAlpha() < AlphaUpdateListener.ALPHA_CUTOFF_THRESHOLD) {
// Let touches pass through us.