Fix issue with screen pinning check not apply in 2 button

Bug: 130687624
Test: Ensure you can't swipe up with screen pinning enabled in 2 button
Change-Id: I6635a9639262a4e96a104960eb5fbb3acaba8af7
This commit is contained in:
Winson Chung
2019-06-13 11:17:07 -07:00
parent 3d6e96d526
commit 6e25a9d831

View File

@@ -547,6 +547,10 @@ public class TouchInteractionService extends Service implements
(mSystemUiStateFlags & SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE) != 0, base,
mInputMonitorCompat, mSwipeTouchRegion);
}
} else {
if ((mSystemUiStateFlags & SYSUI_STATE_SCREEN_PINNING) != 0) {
base = mResetGestureInputConsumer;
}
}
return base;
}