Merge "Don't allow Taskbar unstash during Assistant gesture" into udc-dev am: e2a6113e93 am: 39748f8883
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23565985 Change-Id: I6b523da0d72e455d57dd9e6181d02bf67974764f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4e012e8229
1 file changed
+2
-2
@@ -911,9 +911,9 @@ public class TouchInteractionService extends Service
|
|||||||
base = tryCreateAssistantInputConsumer(base, newGestureState, event, reasonString);
|
base = tryCreateAssistantInputConsumer(base, newGestureState, event, reasonString);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If Taskbar is present, we listen for long press or cursor hover events to unstash it.
|
// If Taskbar is present, we listen for swipe or cursor hover events to unstash it.
|
||||||
TaskbarActivityContext tac = mTaskbarManager.getCurrentActivityContext();
|
TaskbarActivityContext tac = mTaskbarManager.getCurrentActivityContext();
|
||||||
if (tac != null) {
|
if (tac != null && !(base instanceof AssistantInputConsumer)) {
|
||||||
// Present always on large screen or on small screen w/ flag
|
// Present always on large screen or on small screen w/ flag
|
||||||
DeviceProfile dp = tac.getDeviceProfile();
|
DeviceProfile dp = tac.getDeviceProfile();
|
||||||
boolean useTaskbarConsumer = dp.isTaskbarPresent && !TaskbarManager.isPhoneMode(dp)
|
boolean useTaskbarConsumer = dp.isTaskbarPresent && !TaskbarManager.isPhoneMode(dp)
|
||||||
|
|||||||
Reference in new issue
Block a user